RT notifier: parse templates without header correctly
[openxpki.git] / trunk / package / debian / deployment / Makefile
blobd6a65d3360f93e5f4d7440b6ea047fef1c1202ea
1 # trunk/package/debian/core
3 OPENXPKI_SVN=../../../..
4 PACKAGE=openxpki-deployment
6 default:
7 make clean
8 make changelog
9 make openxpki-archive
10 make debian-archive
11 make source
12 make package
13 make source-clean
15 openxpki-archive:
16 cd ${OPENXPKI_SVN}/trunk/deployment; \
17 ./configure --distonly; \
18 make dist; \
19 mv $(PACKAGE)-*.tar.gz /tmp
21 debian-archive:
22 ## cd ${OPENXPKI_SVN}/trunk/package/
23 tar -czf /tmp/openxpki-debian.tar.gz .
25 source:
26 cd /tmp; \
27 tar -xzf $(PACKAGE)-*.tar.gz; \
28 cd $(PACKAGE)-*/; \
29 mkdir debian; \
30 cd debian; \
31 tar -xzf /tmp/openxpki-debian.tar.gz;
33 package:
34 cd /tmp/$(PACKAGE)-*/; \
35 fakeroot dpkg-buildpackage || echo ignoring error - usually signing ...
36 test -d ../deb/client || mkdir ../deb/client
37 mv /tmp/$(PACKAGE)_* ../deb/client/
39 changelog::
40 if [ ! -e changelog.org ]; then mv changelog changelog.org; fi
41 echo -n $(PACKAGE) > changelog
42 DATE=`date +'%Y%m%d'` && echo \ \($$DATE\) unstable\; urgency=low >> changelog
43 echo >> changelog
44 echo " * Daily build." >> changelog
45 echo >> changelog
46 echo " -- Michael Bell <michael.bell@web.de> " `date --rfc-2822` >> changelog
48 source-clean:
49 rm -rf /tmp/$(PACKAGE)-*
50 rm -f /tmp/$(PACKAGE)-*.tar.gz
51 rm -f /tmp/$(PACKAGE).tar.gz
52 rm -f /tmp/openxpki-debian.tar.gz
54 clean: source-clean
55 if [ -e changelog.org ]; then mv changelog.org changelog; fi
56 rm -f *.dsc *.dsc.asc *.tar.gz ../deb/client/$(PACKAGE)_* *.changes
58 distclean: clean