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

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

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

revision 431 by gregoa, Fri Nov 17 21:11:14 2006 UTC revision 640 by gregoa, Tue Mar 20 19:47:21 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/jempbox/JempBox-.+-dev\.zip")
16    
17    ifeq ($(strip $(URL)),)
18            URL:="http://qa.debian.org/watch/sf.php/jempbox/JempBox-$(CURRENT)-dev.zip"
19    endif
20    
21    VERSION=$(shell echo $(URL) | perl -pe 's/.+JempBox-(.+)-dev.+/$$1/g')
22    TMPDIR:=$(shell mktemp -d)
23    
24    get-orig-source:
25            wget -q -P$(TMPDIR) $(URL)
26            unzip $(TMPDIR)/*.zip -d $(TMPDIR)/libjempbox-java-$(VERSION)
27            rm -r $(TMPDIR)/libjempbox-java-$(VERSION)/JempBox-$(VERSION)-dev/lib
28            cd $(TMPDIR)/libjempbox-java-$(VERSION) && tar cfz libjempbox-java-$(VERSION).dfsg.tar.gz JempBox-$(VERSION)-dev && cd $(CURDIR)
29            mv $(TMPDIR)/libjempbox-java-$(VERSION)/libjempbox-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.431  
changed lines
  Added in v.640

  ViewVC Help
Powered by ViewVC 1.1.26