~gmpc-trunk/+junk/gmpc-last-fm.trunk

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Taylor LeMasurier-Wren
  • Date: 2009-08-16 02:29:52 UTC
  • Revision ID: ripps@ripps-desktop-20090816022952-yjxqzji83yscmei6
Use git tag as release version

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        NOCONFIGURE=true ./autogen.sh
17
17
 
18
18
 
19
 
RELEASE:=0.18.95
 
19
#RELEASE:=0.18.95
20
20
DEB_ORIG_URI:=git://repo.or.cz/gmpc-last.fm.git
21
21
TMP_DIR := tmp-$(shell echo $$$$)
22
22
 
32
32
        git checkout $(DEBIAN_TAG)
33
33
endif
34
34
        @cd $(TMP_DIR)/$(DEBIAN_NAME) ; \
 
35
        VERS=`git for-each-ref --format="%(taggerdate:raw)%(committerdate:raw)%(refname:short)" refs/tags | sort -n | tail -n1 | sed 's/^.*release-//;s/_/~/'` ; \
35
36
        REV=`git log --pretty=format:%cd.%h --date=short -1 | tr -d -` ; \
36
 
        #VERSION=$$VERS~git$$REV ; \
37
 
        VERSION=$(RELEASE)~git$$REV ; \
 
37
        VERSION=$$VERS+git$$REV ; \
 
38
        #VERSION=$(RELEASE)~git$$REV ; \
38
39
        echo VERSION=$$VERSION ; \
39
40
        cd .. ; \
40
41
        mv $(DEBIAN_NAME) $(DEBIAN_NAME)-$$VERSION ; \