ezmlm-web packaging:

* fixed debian packaging script
This commit is contained in:
lars 2008-10-16 01:17:23 +00:00
parent 58b9a00698
commit 7b5d2200dc

View file

@ -2,9 +2,8 @@
set -eu set -eu
DEBIAN_URL=https://svn.systemausfall.org/svn/ezmlm-web/debian
PRJ_ROOT=$(dirname $(cd "$(dirname $0)"; pwd)) PRJ_ROOT=$(dirname $(cd "$(dirname $0)"; pwd))
DEBIAN_DIR="$PRJ_ROOT/debian"
#ARCHITECTURES="i386 ia64 alpha amd64 armeb arm hppa m32r m68k mips mipsel powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc" #ARCHITECTURES="i386 ia64 alpha amd64 armeb arm hppa m32r m68k mips mipsel powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc"
ARCHITECTURES="i386" ARCHITECTURES="i386"
PREFIX=ezmlm-web PREFIX=ezmlm-web
@ -13,7 +12,7 @@ PREFIX=ezmlm-web
get_debian_version() get_debian_version()
# compare the given version with the one from debian/changelog # compare the given version with the one from debian/changelog
{ {
head -1 "$SRC_DIR/debian/changelog" | cut -f 2 -d "(" | cut -f 1 -d "-" head -1 "$DEBIAN_DIR/changelog" | cut -f 2 -d "(" | cut -f 1 -d "-"
} }
set_package_version() set_package_version()
@ -53,7 +52,7 @@ NEW_TAR_FILE=${PREFIX}_${1}.orig.tar.gz
cp "$TAR_FILE" "$NEW_TAR_FILE" cp "$TAR_FILE" "$NEW_TAR_FILE"
tar xzf "$TAR_FILE" tar xzf "$TAR_FILE"
cd "$PREFIX-$1" cd "$PREFIX-$1"
svn export $DEBIAN_URL" debian svn export "$DEBIAN_DIR" debian
# problem: the orig tarball is being rebuild again and again - so it is always different # problem: the orig tarball is being rebuild again and again - so it is always different
for arch in $ARCHITECTURES for arch in $ARCHITECTURES