Changeset 3a2286f


Ignore:
Timestamp:
Jan 4, 2012 12:57:54 AM (9 years ago)
Author:
kytv <kytv@…>
Branches:
master
Children:
3b59af1
Parents:
ab0e8d9
Message:

Debian: EXTRA is now assigned dymanically

Before there was a patch to add the -deb1 to the RouterVersion?.java file, but
it needed me to update the deb#. With my newly budding regex skills, I'm now manipulating
it using sed and determining the number according to the debian version number.

Location:
debian
Files:
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • debian/patches/series

    rab0e8d9 r3a2286f  
    220002-jbigi-soname.patch
    330003-renaming-jcpuid.patch
    4 debian-version.patch
  • debian/rules

    rab0e8d9 r3a2286f  
    2727JAVA_HOME=/usr/lib/jvm/default-java
    2828I2P=$(CURDIR)/pkg-temp
     29ROUTERVERSION=$(CURDIR)/router/java/src/net/i2p/router/RouterVersion.java
     30
     31# I2P's version will be displayed in the router console as "$I2PVERSION-$EXTRAPREFIX$DEBIANVERSION", eg. 0.8.12-0-deb1
     32export EXTRAPREFIX := deb
    2933export JAVA_HOME I2P
     34export DEBIANVERSION := $(shell dpkg-parsechangelog |awk -F' ' '/Version/{print $$2}' |sed 's/.*-\([[:digit:]]\{1,\}\).*$$/\1/')
    3035#export DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
    3136
     
    3641
    3742override_dh_auto_clean:
     43        -[ -r $(CURDIR)/debian/routerversion.java.bak ] && mv -f $(CURDIR)/debian/routerversion.java.bak $(ROUTERVERSION)
    3844        dh_auto_clean
    3945        ant distclean
     
    4955build-indep:
    5056        dh_prep
     57        cp -f $(ROUTERVERSION) $(CURDIR)/debian/routerversion.java.bak
     58        sed -e "s/\(.*EXTRA\ =\ \)[^ ]*\"\(.*\)\"/\1\"\2-$$EXTRAPREFIX$$DEBIANVERSION\"/" < $(ROUTERVERSION) > $(ROUTERVERSION).tmp
     59        mv -f $(ROUTERVERSION).tmp $(ROUTERVERSION)
    5160        # The next line is used by KYTV when building from source packages
    5261        #[ -r jetty/jetty-5.1.15.tgz ] && ln -sf $(CURDIR)/jetty/jetty-5.1.15.tgz $(CURDIR)/apps/jetty/jetty-5.1.15.tgz
     
    7786        @/bin/cat $(CURDIR)/LICENSE.txt >> $(CURDIR)/debian/copyright
    7887
    79 
    8088override_dh_compress:
    8189        dh_compress -X.xsl -X.xml
Note: See TracChangeset for help on using the changeset viewer.