/[debian]/libpdfbox-java/trunk/debian/rules
ViewVC logotype

Diff of /libpdfbox-java/trunk/debian/rules

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

revision 683 by gregoa, Fri Nov 17 23:04:08 2006 UTC revision 684 by gregoa, Sun Apr 1 15:04:25 2007 UTC
# Line 11  Line 11 
11    
12  include /usr/share/dpatch/dpatch.make  include /usr/share/dpatch/dpatch.make
13    
14    CURRENT:=$(shell dpkg-parsechangelog | perl -ne 'print if s/^Version: ([0-9.]+).dfsg.*$$/$$1/')
15    URL:=$(shell uscan -report | grep -Eo "http://qa.debian.org/watch/sf.php/pdfbox/PDFBox-.+\.zip")
16    
17    ifeq ($(strip $(URL)),)
18            URL:="http://qa.debian.org/watch/sf.php/pdfbox/PDFBox-$(CURRENT).zip"
19    endif
20    
21    VERSION=$(shell echo $(URL) | perl -pe 's/.+PDFBox-(.+)\.zip/$$1/g')
22    TMPDIR:=$(shell mktemp -d)
23    
24    get-orig-source:
25            wget -q -P$(TMPDIR) $(URL)
26            unzip $(TMPDIR)/*.zip -d $(TMPDIR)/libpdfbox-java-$(VERSION)
27            rm -r $(TMPDIR)/libpdfbox-java-$(VERSION)/PDFBox-$(VERSION)/external
28            cd $(TMPDIR)/libpdfbox-java-$(VERSION)/ && tar cfz libpdfbox-java-$(VERSION).dfsg.tar.gz PDFBox-$(VERSION) && cd $(CURDIR)
29            mv $(TMPDIR)/libpdfbox-java-$(VERSION)/libpdfbox-java-$(VERSION).dfsg.tar.gz $(CURDIR)/../
30            rm -rf $(TMPDIR)
31    
32  configure: configure-stamp  configure: configure-stamp
33    
34  configure-stamp: patch  configure-stamp: patch

Legend:
Removed from v.683  
changed lines
  Added in v.684

  ViewVC Help
Powered by ViewVC 1.1.26