]> code.delx.au - spectrwm/commitdiff
Make tags all the same.
authorMarco Peereboom <marco@conformal.com>
Sun, 13 Sep 2009 22:28:53 +0000 (22:28 +0000)
committerMarco Peereboom <marco@conformal.com>
Sun, 13 Sep 2009 22:28:53 +0000 (22:28 +0000)
Add amateurish script to generate a release; beats me typing it

baraction.sh
initscreen.sh
release.sh [new file with mode: 0644]
screenshot.sh

index d8d519c3b393557a236af81607220042fa184c72..1b9d0ead988bd8388a3eed937bfbc0e6b73feade 100644 (file)
@@ -1,4 +1,6 @@
 #!/bin/sh
+#
+# $scrotwm$
 
 print_date() {
        # The date is printed to the status bar by default.
index 642e8502959bc5297bda8655f790bfe6ebc37e97..789afac20d1b20e202fb1bb979ed9af79217b998 100644 (file)
@@ -2,6 +2,6 @@
 # $scrotwm$
 #
 # Example xrandr multiscreen init
-#
+
 xrandr --output LVDS --auto
 xrandr --output VGA --auto --right-of LVDS
diff --git a/release.sh b/release.sh
new file mode 100644 (file)
index 0000000..9710352
--- /dev/null
@@ -0,0 +1,30 @@
+#!/bin/ksh
+#
+# $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/swm-linux.diff linux/util.h lib/Makefile lib/shlib_version lib/swm_hack.c"
+
+if [ -z "$1" ]; then
+       echo "usage: release.sh <version>"
+       exit 1
+fi
+
+if [ -d "$PREFIX$1" ]; then
+       echo "$PREFIX$1 already exists"
+       exit 1
+fi
+
+TARGET="$PREFIX$1"
+mkdir $TARGET
+
+for i in $DIRS; do
+       mkdir "$TARGET/$i"
+done
+
+for i in $FILES; do
+       cp $i "$TARGET/$i"
+done
+
+tar zcf $TARGET.tgz $TARGET
index 82b97090656c587e14d39b8e6f6b86ba50a5bc97..0fd4cbce48cb455c8f3237f2b895db670071ea57 100644 (file)
@@ -1,6 +1,7 @@
 #!/bin/sh
-# $scrotwm$
 #
+# $scrotwm$
+
 screenshot() {
        case $1 in
        full)