Fix the pathnames in our WWW scripts.
[herrie-working.git] / createtar
blob1347137ead296195abce2a821757475e0ee66a08
1 #!/bin/sh
3 set -e
5 if [ $# != 1 ]
6 then
7 echo "usage: $0 version"
8 exit 1
9 fi
11 FILENAME="herrie-$1.tar.bz2"
12 TARBZ2="www/distfiles/$FILENAME"
13 TARGZ="www/distfiles/herrie-$1.tar.gz"
15 cd `dirname $0`
17 if [ -e $TARBZ2 ]
18 then
19 echo "$TARBZ2: file already exists"
20 exit 1
23 mkdir -p www/distfiles
24 git archive --format=tar --prefix="herrie-$1/" HEAD:herrie |
25 bzip2 -9 > $TARBZ2
26 bzip2 -d < $TARBZ2 | gzip -9 > $TARGZ
28 cd www/distfiles
29 md5 $FILENAME
30 sha256 $FILENAME
31 stat -f "SIZE ($FILENAME) = %z" $FILENAME
33 echo "don't forget to run ./updatestuff!"