From 9e2386ab5e6e90470e223807710374304418474d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=F6ling?= Date: Wed, 21 Jul 2010 12:50:31 +0200 Subject: [PATCH] BEDIAN Package Generator: Pfade angepasst, Version gefixt. --- DEBIAN/mk_erp_deb.sh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/DEBIAN/mk_erp_deb.sh b/DEBIAN/mk_erp_deb.sh index 5856051cc..60fe00ef7 100755 --- a/DEBIAN/mk_erp_deb.sh +++ b/DEBIAN/mk_erp_deb.sh @@ -4,17 +4,17 @@ NR="0" #hier wurde das Git-Paket entpakt: -SRC=/tmp/lx-office-erp +SRC=/tmp/deb_test/unstable #hier wird das Debian-Paket gebaut: -DST=/tmp/lx-office +DST=/tmp/deb_test/package ################################################ # ab hier keine Konfiguration mehr ################################################ -VERSION=`cat ../VERSION` +VER=`cat VERSION` DEST=$DST/lx-office-erp_$VER-$NR-all FILES=' @@ -47,12 +47,11 @@ for filespec in $FILES; do set - `echo $filespec | sed -e 's/:/ /g'` dir=$1 file=$2 - - mkdir -p $dir - if [ -f "./files/$file" ]; then - cp ./files/$file $dir/$file + mkdir -p $SRC/DEBIAN/$dir + if [ -f $SRC/DEBIAN/files/$file ]; then + cp $SRC/DEBIAN/files/$file $SRC/DEBIAN/$dir/$file else - echo '1' > $dir/.dummy + echo '1' > $SRC/DEBIAN/$dir/.dummy fi done @@ -72,7 +71,7 @@ for symspec in $SYMLINKS; do src=$1 tar=$2 - ln -s $tar ./usr/lib/lx-office-erp/$src + ln -s $tar $SRC/DEBIAN/usr/lib/lx-office-erp/$src done #fertig -- 2.20.1