X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=release.sh;h=d2048eb633f2638274cd1029fa2f751ea4f1e709;hb=f31159407e2b8ceebfed9330fdf36db5d9ab54d0;hp=dabd933cb35636d7e888d6b91a0b5b4935595c8e;hpb=0c30c1e893d82d781cb9d7870e488c07e4386d1f;p=spectrwm.git diff --git a/release.sh b/release.sh index dabd933..d2048eb 100644 --- a/release.sh +++ b/release.sh @@ -3,8 +3,8 @@ # $scrotwm$ PREFIX=scrotwm- -DIRS="lib linux" -FILES="Makefile baraction.sh initscreen.sh screenshot.sh scrotwm.1 scrotwm.c scrotwm.conf linux/Makefile linux/linux.c linux/util.h lib/Makefile lib/shlib_version lib/swm_hack.c" +DIRS="lib linux osx" +FILES="Makefile baraction.sh initscreen.sh screenshot.sh scrotwm.1 scrotwm_es.1 scrotwm_it.1 scrotwm_pt.1 scrotwm_ru.1 scrotwm.c scrotwm.conf linux/Makefile linux/linux.c linux/util.h linux/scrotwm.desktop lib/Makefile lib/shlib_version lib/swm_hack.c osx/Makefile osx/osx.h osx/osx.c" if [ -z "$1" ]; then echo "usage: release.sh " @@ -16,6 +16,11 @@ if [ -d "$PREFIX$1" ]; then exit 1 fi +if [ -d "$PREFIX$1-port" ]; then + echo "$PREFIX$1 already exists" + exit 1 +fi + TARGET="$PREFIX$1" mkdir $TARGET @@ -28,3 +33,36 @@ for i in $FILES; do done tar zcf $TARGET.tgz $TARGET + +# make port +sudo rm -rf ports +sudo cvs -d /cvs co ports/x11/scrotwm +PORT="$PREFIX$1-port" +mkdir $PORT + +# Makefile +cat port/Makefile | sed "s/SCROTWMVERSION/$1/g" > $PORT/Makefile + +# distinfo +cksum -b -a md5 $TARGET.tgz > $PORT/distinfo +cksum -b -a rmd160 $TARGET.tgz >> $PORT/distinfo +cksum -b -a sha1 $TARGET.tgz >> $PORT/distinfo +cksum -b -a sha256 $TARGET.tgz >> $PORT/distinfo +wc -c $TARGET.tgz 2>/dev/null | awk '{print "SIZE (" $2 ") = " $1}' >> $PORT/distinfo + +# pkg +mkdir $PORT/pkg +cp port/pkg/DESCR $PORT/pkg/ +cp port/pkg/PFRAG.shared $PORT/pkg/ +cp port/pkg/PLIST $PORT/pkg/ + +# patches +mkdir $PORT/patches +cp port/patches/patch-scrotwm_c $PORT/patches/ +cp port/patches/patch-scrotwm_conf $PORT/patches/ + +# make diff +diff -ruNp -x CVS ports/x11/scrotwm/ $PORT > $TARGET.diff + +# kill ports dir or cvs will be angry +sudo rm -rf ports