This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
ifef-registration/Makefile

30 lines
892 B
Makefile

# Basic makefile for project packages building and uploading
PACKAGE=`head -n1 debian/changelog | sed 's/\(^[a-z-]*\).*/\1/'`
VERSION=`head -n1 debian/changelog | sed 's/.*(\(.*\)).*/\1/'`
MAINTAINER=`grep Maintainer debian/control | sed 's/Maintainer: //'`
DISTRIBUTION=`head -n1 debian/changelog | sed 's/.* \([a-z-]*\);.*/\1/'`
.PHONY: package upload
package:
git diff --quiet >/dev/null || false
lenny env DEBEMAIL="\"$(MAINTAINER)\"" debchange -i -D $(DISTRIBUTION) --force-distribution $(DEBCHANGE)
echo $(VERSION)
read e
git commit debian/changelog -m 'Update changelog'
lenny debuild -I.git
make upload
upload:
dput lupin-$(DISTRIBUTION) ../$(PACKAGE)_$(VERSION)_*.changes
git push origin
ifef.zip: theme/ifef/*
cd theme; zip -r ../ifef ifef
centreressources.zip: theme/centreressources/*
cd theme; zip -r ../centreressources centreressources
clean:
-rm -f ifef.zip