Changeset 2150


Ignore:
Timestamp:
04/15/08 17:40:42 (5 years ago)
Author:
anarcat
Message:

make a quick hack to build snapshots from svn, with a snapshot version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/trunk/debian/rules

    r2111 r2150  
    88# Uncomment this to turn on verbose mode.  
    99export DH_VERBOSE=1 
    10 export VERSION=`head -1 debian/changelog | sed -e 's/^[^(]*(\([^)]*\)).*/\1/'` 
     10MAJOR=$(shell sed -ne 's/^[^(]*(\([^)]*\)).*/\1/;1p' debian/changelog) 
     11REV=$(shell LANG=C svn info --non-interactive | awk '/^Revision:/ { print $$2 }') 
     12VERSION="${MAJOR}.r${REV}" 
     13export VERSION 
    1114 
    1215ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) 
     
    4649        (cd src && $(MAKE) install DESTDIR=$(CURDIR)/debian/alternc) 
    4750 
    48         VERSION=`sed -ne 's/^[^(]*(\([^)]*\)).*/\1/;1p' debian/changelog` 
    4951        sed -i -e "s/@@REPLACED_DURING_BUILD@@/${VERSION}/" debian/alternc/var/alternc/bureau/class/local.php 
    5052 
     
    146148 
    147149.PHONY: build clean binary install 
     150 
     151build-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 
Note: See TracChangeset for help on using the changeset viewer.