Changeset 2182

Show
Ignore:
Timestamp:
04/24/08 18:57:09 (3 weeks ago)
Author:
anarcat
Message:

add snapshot building code from alternc

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc-mailman/trunk/debian/rules

    r1773 r2182  
    66# This has to be exported to make some magic below work. 
    77export DH_OPTIONS 
     8 
     9MAJOR=$(shell sed -ne 's/^[^(]*(\([^)]*\)).*/\1/;1p' debian/changelog) 
     10REV=$(shell LANG=C svn info --non-interactive | awk '/^Revision:/ { print $$2 }') 
     11VERSION="${MAJOR}~svn${REV}" 
     12export VERSION 
    813 
    914build: build-stamp 
     
    6873 
    6974.PHONY: build clean binary binary-common binary-arch binary-indep install  
     75 
     76build-snapshot: 
     77        @echo "building a package based on the current snapshot (${VERSION})" 
     78        svn update || true 
     79        svn export . ../alternc-mailman-${VERSION} 
     80        cd ../alternc-mailman-${VERSION} && sed -i -e '0,/UNRELEASED/s/)/~svn${REV})/' debian/changelog && debuild