Skip to content

Commit 863b690

Browse files
committed
make changelog read whatsnew
1 parent 3e2676b commit 863b690

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

package/package.bash

+11-3
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,13 @@ function DebianPackage () {
197197
# -------------------- Changelog -----------------
198198
cp ../debian/changelog "$MANUALS_DIR"changelog
199199
DEBEMAIL="David Bannon <tomboy-ng@bannons.id.au>" dch --changelog "$MANUALS_DIR"changelog -v "$VERSION" -D unstable --force-distribution "Release of new version"
200-
DEBEMAIL="David Bannon <tomboy-ng@bannons.id.au>" dch --changelog "$MANUALS_DIR"changelog --append "Please see github for change details"
200+
if [ -f ../whatsnew ]; then
201+
echo "----------- Including whatsnew in changelog"
202+
while IFS= read -r Line; do
203+
DEBEMAIL="David Bannon <tomboy-ng@bannons.id.au>" dch --changelog "$MANUALS_DIR"changelog --append "$Line"
204+
done < ../whatsnew
205+
fi
206+
DEBEMAIL="David Bannon <tomboy-ng@bannons.id.au>" dch --changelog "$MANUALS_DIR"changelog --append "Please see github for change details."
201207
gzip -9n "$MANUALS_DIR"changelog
202208
# -------------------------------- Make control file -------------------------
203209
echo "Package: $PRODUCT" > BUILD/DEBIAN/control
@@ -296,8 +302,10 @@ function MkWinPreInstaller() {
296302
echo "Source: \"lclstrconsts."$CCODE".mo\"; DestDir: \"{app}\\locale\"; Flags: ignoreversion" >> mo.insert
297303
done
298304
sed '/PUTMOLINESHERE/r mo.insert' "$WIN_DIR"/tomboy-ng.iss.temp > "$WIN_DIR"/tomboy-ng.iss
299-
MANWIDTH=70 man -l ../doc/tomboy-ng.1 > "$WIN_DIR/readme.txt"
300-
unix2dos -q "$WIN_DIR/readme.txt"
305+
MANWIDTH=70 man -l ../doc/tomboy-ng.1 > "$WIN_DIR/readmeUNIX.txt"
306+
awk 'sub("$", "\r")' "$WIN_DIR/readmeUNIX.txt" > "$WIN_DIR/readme.txt"
307+
rm "$WIN_DIR/readmeUNIX.txt"
308+
# unix2dos -q "$WIN_DIR/readme.txt" Hmm, unix2dos seems to have dissapeared !
301309
echo "----------- Windows installer dir created -----------"
302310
rm mo.insert
303311
# ls -la "$WIN_DIR"

0 commit comments

Comments
 (0)