/[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 692 by gregoa, Sun Apr 1 16:48:11 2007 UTC revision 721 by gregoa, Sat Apr 28 15:31:05 2007 UTC
# Line 11  Line 11 
11    
12  include /usr/share/dpatch/dpatch.make  include /usr/share/dpatch/dpatch.make
13    
 CURRENT:=$(shell dpkg-parsechangelog | perl -ne 'print if s/^Version: ([0-9.]+).dfsg.*$$/$$1/')  
 URL:=$(shell uscan -report | grep -Eo "http://qa.debian.org/watch/sf.php/pdfbox/PDFBox-.+\.zip")  
   
 ifeq ($(strip $(URL)),)  
         URL:="http://qa.debian.org/watch/sf.php/pdfbox/PDFBox-$(CURRENT).zip"  
 endif  
   
 VERSION=$(shell echo $(URL) | perl -pe 's/.+PDFBox-(.+)\.zip/$$1/g')  
 TMPDIR:=$(shell mktemp -d)  
   
14  get-orig-source:  get-orig-source:
15          wget -q -P$(TMPDIR) $(URL)          uscan --force-download
16          unzip $(TMPDIR)/*.zip -d $(TMPDIR)/libpdfbox-java-$(VERSION)          
         rm -r $(TMPDIR)/libpdfbox-java-$(VERSION)/PDFBox-$(VERSION)/external/[a-z]*.jar  
         rm -r $(TMPDIR)/libpdfbox-java-$(VERSION)/PDFBox-$(VERSION)/bin  
         cd $(TMPDIR)/libpdfbox-java-$(VERSION)/ && tar cfz libpdfbox-java-$(VERSION).dfsg.tar.gz PDFBox-$(VERSION) && cd $(CURDIR)  
         mv $(TMPDIR)/libpdfbox-java-$(VERSION)/libpdfbox-java-$(VERSION).dfsg.tar.gz $(CURDIR)/../  
         rm -rf $(TMPDIR)  
   
17  configure: configure-stamp  configure: configure-stamp
18    
19  configure-stamp: patch  configure-stamp: patch

Legend:
Removed from v.692  
changed lines
  Added in v.721

  ViewVC Help
Powered by ViewVC 1.1.26