projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Next/Last Pfeile für Paginating.
[kivitendo-erp.git]
/
DEBIAN
/
mk_erp_deb.sh
diff --git
a/DEBIAN/mk_erp_deb.sh
b/DEBIAN/mk_erp_deb.sh
index
306edd7
..
1f542db
100755
(executable)
--- a/
DEBIAN/mk_erp_deb.sh
+++ b/
DEBIAN/mk_erp_deb.sh
@@
-1,19
+1,36
@@
#!/bin/bash
#!/bin/bash
-VER="2.6.1"
+
#Jedes neue Paket der gleichen Version bekommt eine eigene Nummer
#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
#hier wurde das Git-Paket entpakt:
SRC=/tmp/lx-office-erp
+
#hier wird das Debian-Paket gebaut:
#hier wird das Debian-Paket gebaut:
-DEST=/tmp/lx-office/lx-office-erp_$VER-$NR-all
+DST=/tmp/package
+
+
+################################################
+# ab hier keine Konfiguration mehr
+################################################
+
+VER=`cat VERSION`
+DEST=$DST/lx-office-erp_$VER-$NR$1_all
+
mkdir -p $DEST
cd $DEST
#Struktur anlegen:
mkdir -p $DEST
cd $DEST
#Struktur anlegen:
-cp -a $SRC/DEBIAN/* .
-rm ./mk*.sh
+cp -a $SRC/DEBIAN/DEBIAN .
+tar xzf $SRC/DEBIAN/struktur.tgz
+
+#Für Hardy + co Sonderbehandlung
+if [ "$1#" == "-older#" ]; then
+ mv DEBIAN/control.older DEBIAN/control
+else
+ rm DEBIAN/control.older
+fi
#Dateien kopieren:
#aber keine fertigen Konfigurationen, nur *.default
#Dateien kopieren:
#aber keine fertigen Konfigurationen, nur *.default
@@
-27,10
+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/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/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/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
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
@@
-40,6
+57,11
@@
cp -a $SRC/xslt var/lib/lx-office-erp
cp -a $SRC/doc/* usr/share/doc/lx-office-erp/
cp -a $SRC/image/* usr/share/lx-office-erp/
cp -a $SRC/doc/* usr/share/doc/lx-office-erp/
cp -a $SRC/image/* usr/share/lx-office-erp/
+#Ist nicht im Repository. Liegt bei sf
+if [ "$1#" == "-older#" ]; then
+ tar xzf $SRC/DEBIAN/lx-erp-perl-libs-compat-v2.tar.gz
+fi
+
#Git- und dummy-files löschen
find . -name ".git*" -exec rm -rf {} \;
find . -name ".dummy" -exec rm -rf {} \;
#Git- und dummy-files löschen
find . -name ".git*" -exec rm -rf {} \;
find . -name ".dummy" -exec rm -rf {} \;
@@
-55,17
+77,15
@@
find var/ -name "*" -type f -exec md5sum {} \; >> DEBIAN/md5sum
find etc/ -name "*" -type f -exec md5sum {} \; >> DEBIAN/md5sum
#Größe feststellen:
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:
#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 ..
#Revisionsnummer evtl. von Hand eintragen
#Paket bauen:
cd ..
-dpkg-deb --build lx-office-erp_$VER-$NR
-
all
+dpkg-deb --build lx-office-erp_$VER-$NR
$1_
all
echo "Done"
echo "Done"