2005-06-21 01:06:46 +02:00
|
|
|
#!/bin/sh
|
2005-06-11 00:23:38 +02:00
|
|
|
|
2005-06-21 01:06:46 +02:00
|
|
|
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
|
|
|
|
|
2005-10-11 23:27:44 +02:00
|
|
|
TMP_DIR=/tmp/ezmlm-web-${1}
|
|
|
|
[ -e "$TMP_DIR" ] && rm -rf "$TMP_DIR"
|
|
|
|
|
|
|
|
svn export "ezmlm-web-${1}" "$TMP_DIR"
|
2005-11-23 02:34:47 +01:00
|
|
|
tar czf packages/ezmlm-web-${1}.tar.gz -C "$(dirname $TMP_DIR)" --owner=0 --group=0 "$(basename $TMP_DIR)"
|
2005-10-11 23:27:44 +02:00
|
|
|
rm -rf "$TMP_DIR"
|