Changeset 69bbb88 for debian/rules


Ignore:
Timestamp:
Jan 8, 2012 2:55:10 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7feaadb
Parents:
43ec87e (diff), 59bd51a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

propagate from branch 'i2p.i2p' (head b7ee04ecc7a594239e977b25a52ebdabadce558e)

to branch 'i2p.i2p.zzz.jetty6' (head 2cd4a4dae8b87b9ed2128d83aff1b39e3a818556)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/rules

    r43ec87e r69bbb88  
    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
     
    4854build-indep:
    4955        dh_prep
    50         #mkdir -p $(CURDIR)/installer/lib/wrapper/all
    51         #ln -sf /usr/share/java/wrapper.jar $(CURDIR)/installer/lib/wrapper/all/wrapper.jar
     56        cp -f $(ROUTERVERSION) $(CURDIR)/debian/routerversion.java.bak
     57        sed -e "s/\(.*EXTRA\ =\ \)[^ ]*\"\(.*\)\"/\1\"\2-$$EXTRAPREFIX$$DEBIANVERSION\"/" < $(ROUTERVERSION) > $(ROUTERVERSION).tmp
     58        mv -f $(ROUTERVERSION).tmp $(ROUTERVERSION)
     59        # The next line is used by KYTV when building from source packages
     60        #[ -r jetty/jetty-5.1.15.tgz ] && ln -sf $(CURDIR)/jetty/jetty-5.1.15.tgz $(CURDIR)/apps/jetty/jetty-5.1.15.tgz
    5261        ant preppkg-unix javadoc
    5362        echo router.updateDisabled=true > $(I2P)/router.config
     
    7584        @/bin/cat $(CURDIR)/LICENSE.txt >> $(CURDIR)/debian/copyright
    7685
    77 
    7886override_dh_compress:
    7987        dh_compress -X.xsl -X.xml
Note: See TracChangeset for help on using the changeset viewer.