Changeset 2182
- Timestamp:
- 04/24/08 18:57:09 (3 weeks ago)
- Files:
-
- alternc-mailman/trunk/debian/rules (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc-mailman/trunk/debian/rules
r1773 r2182 6 6 # This has to be exported to make some magic below work. 7 7 export DH_OPTIONS 8 9 MAJOR=$(shell sed -ne 's/^[^(]*(\([^)]*\)).*/\1/;1p' debian/changelog) 10 REV=$(shell LANG=C svn info --non-interactive | awk '/^Revision:/ { print $$2 }') 11 VERSION="${MAJOR}~svn${REV}" 12 export VERSION 8 13 9 14 build: build-stamp … … 68 73 69 74 .PHONY: build clean binary binary-common binary-arch binary-indep install 75 76 build-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
