X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=DEBIAN%2Fmk_erp_deb.sh;h=1f542db6fffadc0364b8a8aa3c9881e453001e4f;hb=9c228f168c91f538bd70278a481462618a782e0b;hp=5ee8357ed0e8da02485de231feae4b2428916a72;hpb=829739e443b212f6edc08e93f20f9c259c1cee79;p=kivitendo-erp.git diff --git a/DEBIAN/mk_erp_deb.sh b/DEBIAN/mk_erp_deb.sh index 5ee8357ed..1f542db6f 100755 --- a/DEBIAN/mk_erp_deb.sh +++ b/DEBIAN/mk_erp_deb.sh @@ -1,7 +1,7 @@ #!/bin/bash #Jedes neue Paket der gleichen Version bekommt eine eigene Nummer -NR="0" +NR="${NR:-0}" #hier wurde das Git-Paket entpakt: SRC=/tmp/lx-office-erp @@ -15,7 +15,7 @@ DST=/tmp/package ################################################ VER=`cat VERSION` -DEST=$DST/lx-office-erp_$VER-$NR$1-all +DEST=$DST/lx-office-erp_$VER-$NR$1_all mkdir -p $DEST @@ -44,11 +44,10 @@ cp -a $SRC/scripts usr/lib/lx-office-erp cp -a $SRC/sql usr/lib/lx-office-erp cp -a $SRC/t usr/lib/lx-office-erp cp -a $SRC/*.pl usr/lib/lx-office-erp +cp -a $SRC/dispatcher.f* usr/lib/lx-office-erp cp $SRC/VERSION usr/lib/lx-office-erp cp $SRC/index.html usr/lib/lx-office-erp -cp $SRC/config/lx-erp.conf etc/lx-office-erp/lx-erp.conf.default -cp $SRC/config/console.conf.default etc/lx-office-erp/ -cp $SRC/config/authentication.pl.default etc/lx-office-erp/ +cp $SRC/config/lx_office.conf.default etc/lx-office-erp/lx_office.conf.default cp $SRC/menu.ini usr/lib/lx-office-erp/menu.default cp -a $SRC/css var/lib/lx-office-erp cp -a $SRC/templates var/lib/lx-office-erp @@ -78,17 +77,15 @@ find var/ -name "*" -type f -exec md5sum {} \; >> DEBIAN/md5sum find etc/ -name "*" -type f -exec md5sum {} \; >> DEBIAN/md5sum #Größe feststellen: -SIZE=`du -scb . | grep insgesamt | cut -f1` +SIZE=`du -scb . | tail -n 1 | cut -f1` #Controlfile updaten: -cat DEBIAN/control | sed --expression "s/Installed-Size: 0/Installed-Size: $SIZE/g" > DEBIAN/1.tmp -mv DEBIAN/1.tmp DEBIAN/control -cat DEBIAN/control | sed --expression "s/Version: 0/Version: $VER-$NR/g" > DEBIAN/1.tmp -mv DEBIAN/1.tmp DEBIAN/control +sed --in-place --expression "s/Installed-Size: 0/Installed-Size: $SIZE/g" DEBIAN/control +sed --in-place --expression "s/Version: 0/Version: $VER-$NR/g" DEBIAN/control #Revisionsnummer evtl. von Hand eintragen #Paket bauen: cd .. -dpkg-deb --build lx-office-erp_$VER-$NR$1-all +dpkg-deb --build lx-office-erp_$VER-$NR$1_all echo "Done"