root/trunk/scripts/pkg_src

Revision 780, 450 bytes (checked in by takkaria, 6 months ago)

Add a better source-packaging script.

  • Property svn:executable set to *
Line 
1 #!/bin/sh
2
3 if [ $# -ne 1 ] && [ $# -ne 2 ]; then
4         echo "Simple packaging file for the source."
5         echo ""
6         echo "Use in the root directory of the game, like so:"
7         echo "   scripts/pkg_src <name of of release, e.g. angband-4.0.1> [<output filename>]"
8         echo ""
9
10         exit 1
11 fi
12  
13 DIR=$1
14 if [ $# -eq 1 ]; then
15         OUT=$1.tar.gz
16 else
17         OUT=$2
18 fi
19
20 svn export . $DIR &&
21         cd $DIR &&
22         ./autogen.sh &&
23         rm -rf autogen.sh autom4te.cache &&
24         cd .. &&
25         tar czvf $OUT $DIR
Note: See TracBrowser for help on using the browser.