JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Make tags all the same.
[spectrwm.git] / release.sh
1 #!/bin/ksh
2 #
3 # $scrotwm$
4
5 PREFIX=scrotwm-
6 DIRS="lib linux"
7 FILES="Makefile baraction.sh initscreen.sh screenshot.sh scrotwm.1 scrotwm.c scrotwm.conf linux/Makefile linux/linux.c linux/swm-linux.diff linux/util.h lib/Makefile lib/shlib_version lib/swm_hack.c"
8
9 if [ -z "$1" ]; then
10         echo "usage: release.sh <version>"
11         exit 1
12 fi
13
14 if [ -d "$PREFIX$1" ]; then
15         echo "$PREFIX$1 already exists"
16         exit 1
17 fi
18
19 TARGET="$PREFIX$1"
20 mkdir $TARGET
21
22 for i in $DIRS; do
23         mkdir "$TARGET/$i"
24 done
25
26 for i in $FILES; do
27         cp $i "$TARGET/$i"
28 done
29
30 tar zcf $TARGET.tgz $TARGET