Debian Codegraph @

scripts/pkg_deb

raw symbols SCIP
1 #!/bin/sh
2
3 if [ $# -ne 0 ]; then
4 echo "Simple packaging file for the Debian source tarball."
5 echo ""
6 echo "Use in the root directory of the game, like so:"
7 echo " scripts/pkg_deb"
8 echo "The script will output a tarball angband_[git describe].orig.tar.gz"
9
10 exit 1
11 fi
12
13 TAG1=angband-`git describe`
14 TAG2=angband_`git describe`
15 OUT=$TAG2.orig.tar.gz
16
17 # Error checking
18 if [ -e $OUT ]; then
19 cat <<EOF
20 The output file $OUT already exists.
21 Please rename or delete it before running the script again.
22 EOF
23 exit 1
24 fi
25
26 if [ -e $TAG1 ]; then
27 cat <<EOF
28 The output directory $TAG1 already exists.
29 Please rename or delete it before running the script again.
30 EOF
31 exit 1
32 fi
33
34 git checkout-index --prefix=$TAG1/ -a &&
35 git describe > $TAG1/version &&
36 cd $TAG1 &&
37 ./autogen.sh &&
38 rm -rf autogen.sh autom4te.cache &&
39 cd .. &&
40 tar --exclude .gitignore --exclude *.dll --exclude *.mp3 --exclude lib/tiles/shockbolt/64x64.png -czvf ../$OUT $TAG1 &&
41 rm -rf $TAG1