Skip to content

Commit

Permalink
make changelog read whatsnew
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbannon committed Apr 9, 2023
1 parent 3e2676b commit 863b690
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions package/package.bash
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ function DebianPackage () {
# -------------------- Changelog -----------------
cp ../debian/changelog "$MANUALS_DIR"changelog
DEBEMAIL="David Bannon <tomboy-ng@bannons.id.au>" dch --changelog "$MANUALS_DIR"changelog -v "$VERSION" -D unstable --force-distribution "Release of new version"
DEBEMAIL="David Bannon <tomboy-ng@bannons.id.au>" dch --changelog "$MANUALS_DIR"changelog --append "Please see github for change details"
if [ -f ../whatsnew ]; then
echo "----------- Including whatsnew in changelog"
while IFS= read -r Line; do
DEBEMAIL="David Bannon <tomboy-ng@bannons.id.au>" dch --changelog "$MANUALS_DIR"changelog --append "$Line"
done < ../whatsnew
fi
DEBEMAIL="David Bannon <tomboy-ng@bannons.id.au>" dch --changelog "$MANUALS_DIR"changelog --append "Please see github for change details."
gzip -9n "$MANUALS_DIR"changelog
# -------------------------------- Make control file -------------------------
echo "Package: $PRODUCT" > BUILD/DEBIAN/control
Expand Down Expand Up @@ -296,8 +302,10 @@ function MkWinPreInstaller() {
echo "Source: \"lclstrconsts."$CCODE".mo\"; DestDir: \"{app}\\locale\"; Flags: ignoreversion" >> mo.insert
done
sed '/PUTMOLINESHERE/r mo.insert' "$WIN_DIR"/tomboy-ng.iss.temp > "$WIN_DIR"/tomboy-ng.iss
MANWIDTH=70 man -l ../doc/tomboy-ng.1 > "$WIN_DIR/readme.txt"
unix2dos -q "$WIN_DIR/readme.txt"
MANWIDTH=70 man -l ../doc/tomboy-ng.1 > "$WIN_DIR/readmeUNIX.txt"
awk 'sub("$", "\r")' "$WIN_DIR/readmeUNIX.txt" > "$WIN_DIR/readme.txt"
rm "$WIN_DIR/readmeUNIX.txt"
# unix2dos -q "$WIN_DIR/readme.txt" Hmm, unix2dos seems to have dissapeared !
echo "----------- Windows installer dir created -----------"
rm mo.insert
# ls -la "$WIN_DIR"
Expand Down

0 comments on commit 863b690

Please sign in to comment.