/[escript]/branches/3.4/debian/rules
ViewVC logotype

Diff of /branches/3.4/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4468 by jfenwick, Tue Jun 18 09:01:06 2013 UTC revision 4469 by jfenwick, Wed Jun 19 02:49:33 2013 UTC
# Line 1  Line 1 
1  #!/usr/bin/make -f  #!/usr/bin/make -f
2    
3  BDEST=$(CURDIR)/debian/escript  BDEST=$(CURDIR)/debian/python-escript
4  DDEST=$(CURDIR)/debian/escript-doc  DDEST=$(CURDIR)/debian/python-escript-doc
5  BUILD=$(CURDIR)/debian/tmp  BUILD=$(CURDIR)/debian/tmp
6  WORK=$(CURDIR)/debian/stage  WORK=$(CURDIR)/debian/stage
7    
# Line 33  install: Line 33  install:
33  binary: binary-arch binary-indep  binary: binary-arch binary-indep
34    
35  binary-arch: install  binary-arch: install
36      mkdir -p $(BDEST)/usr/share/doc/escript/      mkdir -p $(BDEST)/usr/share/doc/python-escript/
37      mkdir -p $(BDEST)/usr/share/man/man1      mkdir -p $(BDEST)/usr/share/man/man1
38      mkdir -p $(BDEST)/usr/lib/escript      mkdir -p $(BDEST)/usr/lib/python-escript
39      mkdir -p $(BDEST)/usr/bin      mkdir -p $(BDEST)/usr/bin
40      cp $(WORK)/lib/* $(BDEST)/usr/lib/escript      cp $(WORK)/lib/* $(BDEST)/usr/lib/python-escript
41      cp -r $(WORK)/esys $(BDEST)/usr/lib/escript      cp -r $(WORK)/esys $(BDEST)/usr/lib/python-escript
42      cp $(WORK)/bin/* $(BDEST)/usr/bin        cp $(WORK)/bin/* $(BDEST)/usr/bin  
43      cp doc/manpage/man1/run-escript.1 $(BDEST)/usr/share/man/man1      cp doc/manpage/man1/run-escript.1 $(BDEST)/usr/share/man/man1
44      install --mode=644 debian/changelog $(BDEST)/usr/share/doc/escript/changelog.Debian      install --mode=644 debian/changelog $(BDEST)/usr/share/doc/python-escript/changelog.Debian
45      gzip -f9 $(BDEST)/usr/share/doc/escript/changelog.Debian      gzip -f9 $(BDEST)/usr/share/doc/python-escript/changelog.Debian
46      install --mode=644 debian/copyright $(BDEST)/usr/share/doc/escript      install --mode=644 debian/copyright $(BDEST)/usr/share/doc/python-escript
47      gzip -f9 $(BDEST)/usr/share/doc/escript/copyright      gzip -f9 $(BDEST)/usr/share/doc/python-escript/copyright
48      mkdir -p debian/escript/DEBIAN      mkdir -p debian/python-escript/DEBIAN
49      #Thanks to Krafft's book for this      #Thanks to Krafft's book for this
50      cd debian/escript && find * -path DEBIAN -prune -o -type f -print | xargs md5sum > DEBIAN/md5sums      cd debian/python-escript && find * -path DEBIAN -prune -o -type f -print | xargs md5sum > DEBIAN/md5sums
51      dpkg-gencontrol -Pdebian/escript -pescript      dpkg-gencontrol -Pdebian/python-escript -ppython-escript
52      dpkg-deb --build debian/escript ..      dpkg-deb --build debian/python-escript ..
53    
54  binary-indep: install  binary-indep: install
55      mkdir -p $(DDEST)      mkdir -p $(DDEST)
56      mkdir -p $(DDEST)/usr/share/doc/escript-doc/      mkdir -p $(DDEST)/usr/share/doc/python-escript-doc/
57      mkdir -p debian/escript-doc/DEBIAN      mkdir -p debian/python-escript-doc/DEBIAN
58      scons $(sflags) SVN_VERSION=`cat svn_version` build_dir=$(BUILD) verbose=on prefix=$(WORK) options_file=`packaging/debuntu/getsubst` docs      scons $(sflags) SVN_VERSION=`cat svn_version` build_dir=$(BUILD) verbose=on prefix=$(WORK) options_file=`packaging/debuntu/getsubst` docs
59      install --mode=644 debian/copyright $(DDEST)/usr/share/doc/escript-doc      install --mode=644 debian/copyright $(DDEST)/usr/share/doc/python-escript-doc
60      gzip -f9 $(DDEST)/usr/share/doc/escript-doc/copyright      gzip -f9 $(DDEST)/usr/share/doc/python-escript-doc/copyright
61      install --mode=644 debian/changelog $(DDEST)/usr/share/doc/escript-doc/changelog.Debian      install --mode=644 debian/changelog $(DDEST)/usr/share/doc/python-escript-doc/changelog.Debian
62      gzip -f9 $(DDEST)/usr/share/doc/escript-doc/changelog.Debian      gzip -f9 $(DDEST)/usr/share/doc/python-escript-doc/changelog.Debian
63      cp $(WORK)/release/doc/escript_examples.tar.gz $(DDEST)/usr/share/doc/escript-doc/      cp $(WORK)/release/doc/escript_examples.tar.gz $(DDEST)/usr/share/doc/python-escript-doc/
64      cp $(WORK)/release/doc/install/install.pdf $(DDEST)/usr/share/doc/escript-doc      cp $(WORK)/release/doc/install/install.pdf $(DDEST)/usr/share/doc/python-escript-doc
65      cp $(WORK)/release/doc/user/user.pdf $(DDEST)/usr/share/doc/escript-doc      cp $(WORK)/release/doc/user/user.pdf $(DDEST)/usr/share/doc/python-escript-doc
66      cp $(WORK)/release/doc/cookbook/cookbook.pdf $(DDEST)/usr/share/doc/escript-doc      cp $(WORK)/release/doc/cookbook/cookbook.pdf $(DDEST)/usr/share/doc/python-escript-doc
67      cp $(WORK)/release/doc/inversion/inversion.pdf $(DDEST)/usr/share/doc/escript-doc/      cp $(WORK)/release/doc/inversion/inversion.pdf $(DDEST)/usr/share/doc/python-escript-doc/
68      cp -r $(WORK)/release/doc/sphinx_api $(DDEST)/usr/share/doc/escript-doc/python_html      cp -r $(WORK)/release/doc/sphinx_api $(DDEST)/usr/share/doc/python-escript-doc/python_html
69      cp -r $(WORK)/release/doc/doxygen $(DDEST)/usr/share/doc/escript-doc/doxygen          cp -r $(WORK)/release/doc/doxygen $(DDEST)/usr/share/doc/python-escript-doc/doxygen
70      cd debian/escript-doc && find * -path DEBIAN -prune -o -type f -print | xargs md5sum > DEBIAN/md5sums      cd debian/python-escript-doc && find * -path DEBIAN -prune -o -type f -print | xargs md5sum > DEBIAN/md5sums
71      dpkg-gencontrol -Pdebian/escript-doc -pescript-doc      dpkg-gencontrol -Pdebian/python-escript-doc -ppython-escript-doc
72      dpkg-deb --build debian/escript-doc ..      dpkg-deb --build debian/python-escript-doc ..
73            

Legend:
Removed from v.4468  
changed lines
  Added in v.4469

  ViewVC Help
Powered by ViewVC 1.1.26