3 #Jedes neue Paket der gleichen Version bekommt eine eigene Nummer
6 #hier wurde das Git-Paket entpakt:
8 #hier wird das Debian-Paket gebaut:
9 DEST=/tmp/lx-office/lx-office-erp_$VER-$NR-all
19 #aber keine fertigen Konfigurationen, nur *.default
20 cp -a $SRC/SL usr/lib/lx-office-erp
21 cp -a $SRC/bin usr/lib/lx-office-erp
22 cp -a $SRC/js usr/lib/lx-office-erp
23 cp -a $SRC/locale usr/lib/lx-office-erp
24 cp -a $SRC/lxo-import usr/lib/lx-office-erp
25 cp -a $SRC/modules usr/lib/lx-office-erp
26 cp -a $SRC/scripts usr/lib/lx-office-erp
27 cp -a $SRC/sql usr/lib/lx-office-erp
28 cp -a $SRC/t usr/lib/lx-office-erp
29 cp -a $SRC/*.pl usr/lib/lx-office-erp
30 cp $SRC/VERSION usr/lib/lx-office-erp
31 cp $SRC/index.html usr/lib/lx-office-erp
32 cp $SRC/config/lx-erp.conf etc/lx-office-erp/lx-erp.conf.default
33 cp $SRC/config/authentication.pl.default etc/lx-office-erp/
34 cp $SRC/menu.ini usr/lib/lx-office-erp/menu.default
35 cp -a $SRC/css var/lib/lx-office-erp
36 cp -a $SRC/templates var/lib/lx-office-erp
37 cp -a $SRC/users var/lib/lx-office-erp
38 cp -a $SRC/xslt var/lib/lx-office-erp
40 cp -a $SRC/doc/* usr/share/doc/lx-office-erp/
41 cp -a $SRC/image/* usr/share/lx-office-erp/
43 #Git- und dummy-files löschen
44 find . -name ".git*" -exec rm -rf {} \;
45 find . -name ".dummy" -exec rm -rf {} \;
48 chown -R www-data: usr/lib/lx-office-erp
49 chown -R www-data: var/lib/lx-office-erp
50 chown -R www-data: etc/lx-office-erp
53 find usr/ -name "*" -type f -exec md5sum {} \; > DEBIAN/md5sum
54 find var/ -name "*" -type f -exec md5sum {} \; >> DEBIAN/md5sum
55 find etc/ -name "*" -type f -exec md5sum {} \; >> DEBIAN/md5sum
58 SIZE=`du -scb . | grep insgesamt | cut -f1`
61 cat DEBIAN/control | sed --expression "s/Installed-Size: 0/Installed-Size: $SIZE/g" > DEBIAN/1.tmp
62 mv DEBIAN/1.tmp DEBIAN/control
63 cat DEBIAN/control | sed --expression "s/Version: 0/Version: $VER-$NR/g" > DEBIAN/1.tmp
64 mv DEBIAN/1.tmp DEBIAN/control
65 #Revisionsnummer evtl. von Hand eintragen
69 dpkg-deb --build lx-office-erp_$VER-$NR-all