blob: 63384fe64709cd889028285490e04ae51be77417 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
if [ ! -e debian/rules ] ; then
echo "Run from the top-level source directory as debian/prepare"
exit 1
fi
if [ -d CVS/ ] ; 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
cp debian/changelog.debian debian/changelog
fi
|