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

Contents of /trunk/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.26