7 FILES="Makefile baraction.sh initscreen.sh screenshot.sh scrotwm.1 scrotwm_es.1 scrotwm_it.1 scrotwm.c scrotwm.conf linux/Makefile linux/linux.c linux/util.h lib/Makefile lib/shlib_version lib/swm_hack.c"
10 echo "usage: release.sh <version>"
14 if [ -d "$PREFIX$1" ]; then
15 echo "$PREFIX$1 already exists"
19 if [ -d "$PREFIX$1-port" ]; then
20 echo "$PREFIX$1 already exists"
35 tar zcf $TARGET.tgz $TARGET
42 cat port/Makefile | sed "s/SCROTWMVERSION/$1/g" > $PORT/Makefile
45 md5 $TARGET.tgz > $PORT/distinfo
46 rmd160 $TARGET.tgz >> $PORT/distinfo
47 sha1 $TARGET.tgz >> $PORT/distinfo
48 cksum -a sha256 $TARGET.tgz >> $PORT/distinfo
49 wc -c $TARGET.tgz 2>/dev/null | awk '{print "SIZE (" $2 ") = " $1}' >> $PORT/distinfo
53 cp port/pkg/DESCR $PORT/pkg/
54 cp port/pkg/PFRAG.shared $PORT/pkg/
55 cp port/pkg/PLIST $PORT/pkg/
59 cp port/patches/patch-scrotwm_c $PORT/patches/
60 cp port/patches/patch-scrotwm_conf $PORT/patches/
63 diff -ruNp -x CVS /usr/ports/x11/scrotwm/ $PORT > $TARGET.diff