aboutsummaryrefslogtreecommitdiff
path: root/debian/prepare
diff options
context:
space:
mode:
authorBastien Nocera2002-05-10 17:28:09 +0000
committerBastien Nocera2002-05-10 17:28:09 +0000
commit1187b8fd37d1b02be864458f1e8ff4c2d7404108 (patch)
tree13e4afd4b0467fcbc3e96f897d018cc6d01a1a0f /debian/prepare
parent5502291f7ade4d3ec903bc8c632328391179378d (diff)
downloadscummvm-rg350-1187b8fd37d1b02be864458f1e8ff4c2d7404108.tar.gz
scummvm-rg350-1187b8fd37d1b02be864458f1e8ff4c2d7404108.tar.bz2
scummvm-rg350-1187b8fd37d1b02be864458f1e8ff4c2d7404108.zip
- removed the old debian files, added new more correct ones, can be used to generate packages from releases and CVS. Just run the debian/prepare script beforehand. Do NOT modify the debian/changelog.debian file.
svn-id: r4267
Diffstat (limited to 'debian/prepare')
-rwxr-xr-xdebian/prepare16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/prepare b/debian/prepare
new file mode 100755
index 0000000000..63384fe647
--- /dev/null
+++ b/debian/prepare
@@ -0,0 +1,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