scummvm/debian/prepare
Bastien Nocera 11cda19c37 - added the official debian changelog, that nobody apart from me should modify. This should allow Ender to make releases of his own, and me still having the changelog from the official debian package as I want them.
- modified the prepare script to use changelog.debian_official if the username is hadess :)
- added a --nocvs arg to the prepare script to force generating non-snapshot changelogs

svn-id: r4336
2002-05-15 02:49:32 +00:00

21 lines
600 B
Bash
Executable File

#!/bin/sh
if [ ! -e debian/rules ] ; then
echo "Run from the top-level source directory as debian/prepare"
exit 1
fi
if [ -d CVS/ ] && [ $1 != "--nocvs" ]; then
TODATE=`date +%Y%m%d`
NEXT_VERSION=`grep SCUMMVM_VERSION scumm.h | sed 's,\#define\ SCUMMVM_VERSION\ \",,gi' | sed 's,\ devel\",,gi'`
cat debian/changelog.cvs | sed s/@VERSION@/$NEXT_VERSION.cvs$TODATE/g \
> debian/changelog.tmp && mv debian/changelog.tmp debian/changelog
exit 0
else
if [ x$USER = xhadess ]; then
cp debian/changelog.debian_official debian/changelog
else
cp debian/changelog.debian debian/changelog
fi
fi