Revision 5cb95a53
Von Holger Lindemann vor mehr als 14 Jahren hinzugefügt
DEBIAN/mk_erp_deb.sh | ||
---|---|---|
6 | 6 |
#hier wurde das Git-Paket entpakt: |
7 | 7 |
SRC=/tmp/lx-office-erp |
8 | 8 |
#hier wird das Debian-Paket gebaut: |
9 |
DEST=/media/work/lx-office/lx-office-erp_$VER-$NR-all
|
|
9 |
DEST=/tmp/lx-office/lx-office-erp_$VER-$NR-all
|
|
10 | 10 |
|
11 | 11 |
mkdir -p $DEST |
12 | 12 |
cd $DEST |
... | ... | |
16 | 16 |
rm ./mk*.sh |
17 | 17 |
|
18 | 18 |
#Dateien kopieren: |
19 |
#aber keine fertigen Konfigurationen, nur *.default |
|
19 | 20 |
cp -a $SRC/SL usr/lib/lx-office-erp |
20 | 21 |
cp -a $SRC/bin usr/lib/lx-office-erp |
21 | 22 |
cp -a $SRC/js usr/lib/lx-office-erp |
... | ... | |
28 | 29 |
cp -a $SRC/*.pl usr/lib/lx-office-erp |
29 | 30 |
cp $SRC/VERSION usr/lib/lx-office-erp |
30 | 31 |
cp $SRC/index.html usr/lib/lx-office-erp |
31 |
|
|
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 |
|
32 | 35 |
cp -a $SRC/css var/lib/lx-office-erp |
33 | 36 |
cp -a $SRC/templates var/lib/lx-office-erp |
34 | 37 |
cp -a $SRC/users var/lib/lx-office-erp |
35 | 38 |
cp -a $SRC/xslt var/lib/lx-office-erp |
36 | 39 |
|
37 |
cp -a $SRC/doc usr/share/doc/lx-office-erp
|
|
38 |
cp -a $SRC/image/* usr/share/lx-office-erp |
|
40 |
cp -a $SRC/doc/* usr/share/doc/lx-office-erp/
|
|
41 |
cp -a $SRC/image/* usr/share/lx-office-erp/
|
|
39 | 42 |
|
40 |
#Gitfiles löschen |
|
43 |
#Git- und dummy-files löschen
|
|
41 | 44 |
find . -name ".git*" -exec rm -rf {} \; |
42 | 45 |
find . -name ".dummy" -exec rm -rf {} \; |
43 | 46 |
|
44 | 47 |
#Rechte setzen |
45 | 48 |
chown -R www-data: usr/lib/lx-office-erp |
46 | 49 |
chown -R www-data: var/lib/lx-office-erp |
50 |
chown -R www-data: etc/lx-office-erp |
|
47 | 51 |
|
48 | 52 |
#MD5 Summe bilden: |
49 | 53 |
find usr/ -name "*" -type f -exec md5sum {} \; > DEBIAN/md5sum |
... | ... | |
58 | 62 |
mv DEBIAN/1.tmp DEBIAN/control |
59 | 63 |
cat DEBIAN/control | sed --expression "s/Version: 0/Version: $VER-$NR/g" > DEBIAN/1.tmp |
60 | 64 |
mv DEBIAN/1.tmp DEBIAN/control |
65 |
#Revisionsnummer evtl. von Hand eintragen |
|
61 | 66 |
|
62 | 67 |
#Paket bauen: |
63 | 68 |
cd .. |
Auch abrufbar als: Unified diff
Deb-Pakete bauen, diveres Anpassungen