/[escript]/trunk/debian/rules
ViewVC logotype

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4078 - (show annotations)
Fri Nov 16 07:50:49 2012 UTC (6 years, 9 months ago) by jfenwick
File size: 1931 byte(s)
Unit tests for binary install with no scons and no source tree.
Script for installing and testing a .deb within a chroot.



1 #!/usr/bin/make -f
2
3 DEST=$(CURDIR)/debian/escript
4 WORK=$(CURDIR)/debian/tmp
5
6 clean:
7 rm -rf build condif.log esys include lib release .sconf_tmp .sconsign.dblite config.log .sconf_temp
8 rm -rf debian/tmp
9 rm -rf debian/escript
10
11 build:
12 mkdir -p debian/tmp
13 if [ ! -f svn_version ];then echo "No svn_version file found"; exit 3;fi
14 scons SVN_VERSION=`cat svn_version` build_dir=$(WORK) verbose=on prefix=$(WORK) options_file=`packaging/debuntu/getsubst` release_prep
15 sed -e "s%STDLOCATION=0%STDLOCATION=1%" < bin/run-escript > $(WORK)/bin/run-escript
16
17 install: build
18 mkdir -p $(DEST)/usr/share/doc/escript/
19 mkdir -p $(DEST)/usr/share/man/man1
20 mkdir -p $(DEST)/usr/lib/escript
21 mkdir -p $(DEST)/usr/bin
22 cp doc/manpage/man1/run-escript.1 $(DEST)/usr/share/man/man1
23 cp $(WORK)/release/doc/escript_examples.tar.gz $(DEST)/usr/share/doc/escript/
24 cp $(WORK)/release/doc/install/install.pdf $(DEST)/usr/share/doc/escript
25 cp $(WORK)/release/doc/user/user.pdf $(DEST)/usr/share/doc/escript
26 cp $(WORK)/release/doc/cookbook/cookbook.pdf $(DEST)/usr/share/doc/escript
27 cp $(WORK)/release/doc/inversion/inversion.pdf $(DEST)/usr/share/doc/escript
28 cp -r $(WORK)/release/doc/epydoc $(DEST)/usr/share/doc/escript/python_html
29 cp $(WORK)/lib/* $(DEST)/usr/lib/escript
30 cp -r $(WORK)/esys $(DEST)/usr/lib/escript
31 cp $(WORK)/bin/* $(DEST)/usr/bin
32 touch $(WORK)/installed
33
34
35 binary: binary-arch binary-indep
36
37 binary-arch: install
38 install --mode=644 debian/changelog $(DEST)/usr/share/doc/changelog.Debian
39 gzip -f9 $(DEST)/usr/share/doc/changelog.Debian
40 install --mode=644 debian/copyright $(DEST)/usr/share/doc
41 gzip -f9 $(DEST)/usr/share/doc/copyright
42 mkdir -p debian/escript/DEBIAN
43 #Thanks to Krafft's book for this
44 cd debian/escript && find * -path DEBIAN -prune -o -type f -print | xargs md5sum > DEBIAN/md5sums
45 dpkg-gencontrol -Pdebian/escript
46 dpkg-deb --build debian/escript ..
47
48 #This rule intentionally blank
49 binary-indep:
50

  ViewVC Help
Powered by ViewVC 1.1.26