From cd8f3f52f7a17db4d31c9dbeca7bb1d248145cf9 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Sun, 13 Sep 2009 22:28:53 +0000 Subject: [PATCH] Make tags all the same. Add amateurish script to generate a release; beats me typing it --- baraction.sh | 2 ++ initscreen.sh | 2 +- release.sh | 30 ++++++++++++++++++++++++++++++ screenshot.sh | 3 ++- 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 release.sh diff --git a/baraction.sh b/baraction.sh index d8d519c..1b9d0ea 100644 --- a/baraction.sh +++ b/baraction.sh @@ -1,4 +1,6 @@ #!/bin/sh +# +# $scrotwm$ print_date() { # The date is printed to the status bar by default. diff --git a/initscreen.sh b/initscreen.sh index 642e850..789afac 100644 --- a/initscreen.sh +++ b/initscreen.sh @@ -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 index 0000000..9710352 --- /dev/null +++ b/release.sh @@ -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 " + 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 diff --git a/screenshot.sh b/screenshot.sh index 82b9709..0fd4cbc 100644 --- a/screenshot.sh +++ b/screenshot.sh @@ -1,6 +1,7 @@ #!/bin/sh -# $scrotwm$ # +# $scrotwm$ + screenshot() { case $1 in full) -- 2.39.2