Changeset 2150
- Timestamp:
- 04/15/08 17:40:42 (1 month ago)
- Files:
-
- alternc/trunk/debian/rules (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/debian/rules
r2111 r2150 8 8 # Uncomment this to turn on verbose mode. 9 9 export DH_VERBOSE=1 10 export VERSION=`head -1 debian/changelog | sed -e 's/^[^(]*(\([^)]*\)).*/\1/'` 10 MAJOR=$(shell sed -ne 's/^[^(]*(\([^)]*\)).*/\1/;1p' debian/changelog) 11 REV=$(shell LANG=C svn info --non-interactive | awk '/^Revision:/ { print $$2 }') 12 VERSION="${MAJOR}.r${REV}" 13 export VERSION 11 14 12 15 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) … … 46 49 (cd src && $(MAKE) install DESTDIR=$(CURDIR)/debian/alternc) 47 50 48 VERSION=`sed -ne 's/^[^(]*(\([^)]*\)).*/\1/;1p' debian/changelog`49 51 sed -i -e "s/@@REPLACED_DURING_BUILD@@/${VERSION}/" debian/alternc/var/alternc/bureau/class/local.php 50 52 … … 146 148 147 149 .PHONY: build clean binary install 150 151 build-snapshot: 152 @echo "building a package based on the current snapshot (${VERSION})" 153 svn export . ../alternc-${VERSION} 154 cd ../alternc-${VERSION} && debchange -D UNRELEASED -v ${VERSION} "Automatic build of SVN version ${REV}" && debuild
