From d7a342a99b493bbf6053be33b56477f74b068f21 Mon Sep 17 00:00:00 2001 From: lars Date: Tue, 11 Oct 2005 21:27:44 +0000 Subject: [PATCH] make-tar.sh cleaned up --- make-tar.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/make-tar.sh b/make-tar.sh index 115295d..964f400 100755 --- a/make-tar.sh +++ b/make-tar.sh @@ -5,4 +5,9 @@ set -eu [ $# -ne 1 ] && echo "Syntax: `basename $0` VERSION" && echo && exit 1 [ ! -d "ezmlm-web-${1}" ] && echo "the directory 'ezmlm-web-${1}' does not exist!" && exit 2 -tar czf ezmlm-web-${1}.tar.gz --owner=0 --group=0 --exclude=.svn ezmlm-web-${1} +TMP_DIR=/tmp/ezmlm-web-${1} +[ -e "$TMP_DIR" ] && rm -rf "$TMP_DIR" + +svn export "ezmlm-web-${1}" "$TMP_DIR" +tar czf ezmlm-web-${1}.tar.gz -C "$(dirname $TMP_DIR)" --owner=0 --group=0 "$(basename $TMP_DIR)" +rm -rf "$TMP_DIR"