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