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

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4064 - (show annotations)
Fri Nov 9 07:25:14 2012 UTC (6 years, 8 months ago) by jfenwick
File size: 1781 byte(s)
Tweaks
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 scons debug=yes build_dir=$(WORK) prefix=$(WORK) options_file=`packaging/debuntu/getsubst` release_prep
14 sed -e "s%STDLOCATION=0%STDLOCATION=1%" < bin/run-escript > $(WORK)/bin/run-escript
15
16 install: build
17 mkdir -p $(DEST)/usr/share/doc/escript/
18 mkdir -p $(DEST)/usr/share/man/man1
19 mkdir -p $(DEST)/usr/lib/escript
20 mkdir -p $(DEST)/usr/bin
21 cp doc/manpage/man1/run-escript.1 $(DEST)/usr/share/man/man1
22 cp $(WORK)/release/doc/escript_examples.tar.gz $(DEST)/usr/share/doc/escript/
23 cp $(WORK)/release/doc/install/install.pdf $(DEST)/usr/share/doc/escript
24 cp $(WORK)/release/doc/user/user.pdf $(DEST)/usr/share/doc/escript
25 cp $(WORK)/release/doc/cookbook/cookbook.pdf $(DEST)/usr/share/doc/escript
26 cp $(WORK)/release/doc/inversion/inversion.pdf $(DEST)/usr/share/doc/escript
27 cp -r $(WORK)/release/doc/epydoc $(DEST)/usr/share/doc/escript/python_html
28 cp $(WORK)/lib/* $(DEST)/usr/lib/escript
29 cp $(WORK)/bin/* $(DEST)/usr/bin
30 touch $(WORK)/installed
31
32 binary: binary-arch binary-indep
33
34 binary-arch: install
35 install --mode=644 debian/changelog $(DEST)/usr/share/doc/changelog.Debian
36 gzip -f9 $(DEST)/usr/share/doc/changelog.Debian
37 install --mode=644 debian/copyright $(DEST)/usr/share/doc
38 gzip -f9 $(DEST)/usr/share/doc/copyright
39 mkdir -p debian/escript/DEBIAN
40 #Thanks to Krafft's book for this
41 cd debian/escript && find * -path DEBIAN -prune -o -type f -print | xargs md5sum > DEBIAN/md5sums
42 dpkg-gencontrol -Pdebian/escript
43 dpkg-deb --build debian/escript ..
44
45 #This rule intentionally blank
46 binary-indep:
47

  ViewVC Help
Powered by ViewVC 1.1.26