lars
4954a16acf
allow to reset "owner" update language files update packaging scripts only build i386 debian package clarified some copyright stuff move URL of data files from /ezmlm-web-data/ to /ezmlm-web/ (debian policy) add example config file for apache fixed 'usr/local/' to 'usr/local/' patch for debian moved "confirmation selection" from "easy" to "expert" ezmlm-web version number for web interface footer is retrieved from the SPOT ezmlm-web.cgi
26 lines
765 B
Bash
Executable file
26 lines
765 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
PRJ_ROOT=$(dirname $(cd "$(dirname $0)"; pwd))
|
|
PREFIX=ezmlm-web
|
|
|
|
[ $# -lt 1 -o $# -gt 2 ] && echo "Syntax: `basename $0` VERSION" && echo && exit 1
|
|
REL_SRC_DIR=${PREFIX}-${1}
|
|
[ $# -eq 2 ] && REL_SRC_DIR=$2
|
|
SRC_DIR=$(cd "$(pwd)/$REL_SRC_DIR"; pwd)
|
|
[ ! -d "$SRC_DIR" ] && echo "the directory '$REL_SRC_DIR' does not exist!" && exit 2
|
|
|
|
TAR_FILE=$PRJ_ROOT/tags/packages/${PREFIX}-${1}.tar.gz
|
|
|
|
TMP_DIR=/tmp/${PREFIX}-${1}
|
|
[ -e "$TMP_DIR" ] && rm -rf "$TMP_DIR"
|
|
|
|
svn export "$SRC_DIR" "$TMP_DIR"
|
|
|
|
# update language files
|
|
"$TMP_DIR/scripts/update_language_files.py"
|
|
|
|
tar czf "$PRJ_ROOT/tags/packages/${PREFIX}-${1}.tar.gz" -C "$(dirname $TMP_DIR)" --exclude-from="$SRC_DIR/package.exclude" --owner=0 --group=0 "$(basename $TMP_DIR)"
|
|
rm -rf "$TMP_DIR"
|
|
|