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
|
|
|
|
|
2006-01-06 04:56:50 +01:00
|
|
|
PREFIX=ezmlm-web
|
|
|
|
|
2005-06-21 01:06:46 +02:00
|
|
|
[ $# -ne 1 ] && echo "Syntax: `basename $0` VERSION" && echo && exit 1
|
2006-01-06 04:56:50 +01:00
|
|
|
[ ! -d "${PREFIX}-${1}" ] && echo "the directory '${PREFIX}-${1}' does not exist!" && exit 2
|
2005-06-21 01:06:46 +02:00
|
|
|
|
2006-01-06 04:56:50 +01:00
|
|
|
TMP_DIR=/tmp/${PREFIX}-${1}
|
2005-10-11 23:27:44 +02:00
|
|
|
[ -e "$TMP_DIR" ] && rm -rf "$TMP_DIR"
|
|
|
|
|
2006-01-06 04:56:50 +01:00
|
|
|
svn export "${PREFIX}-${1}" "$TMP_DIR"
|
2007-03-19 19:35:26 +01:00
|
|
|
tar czf "packages/${PREFIX}-${1}.tar.gz" -C "$(dirname $TMP_DIR)" --exclude debian --owner=0 --group=0 "$(basename $TMP_DIR)"
|
2005-10-11 23:27:44 +02:00
|
|
|
rm -rf "$TMP_DIR"
|