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

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4065 - (show annotations)
Mon Nov 12 04:47:32 2012 UTC (6 years, 9 months ago) by jfenwick
File size: 1887 byte(s)
Trying without uml
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 $(WORK)/bin/* $(DEST)/usr/bin
31 touch $(WORK)/installed
32
33
34 binary: binary-arch binary-indep
35
36 binary-arch: install
37 install --mode=644 debian/changelog $(DEST)/usr/share/doc/changelog.Debian
38 gzip -f9 $(DEST)/usr/share/doc/changelog.Debian
39 install --mode=644 debian/copyright $(DEST)/usr/share/doc
40 gzip -f9 $(DEST)/usr/share/doc/copyright
41 mkdir -p debian/escript/DEBIAN
42 #Thanks to Krafft's book for this
43 cd debian/escript && find * -path DEBIAN -prune -o -type f -print | xargs md5sum > DEBIAN/md5sums
44 dpkg-gencontrol -Pdebian/escript
45 dpkg-deb --build debian/escript ..
46
47 #This rule intentionally blank
48 binary-indep:
49

  ViewVC Help
Powered by ViewVC 1.1.26