Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3a26428dd7
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (30 sloc) 1.134 kb
version = $(shell git describe)
short_version = $(shell git describe | sed -e 's/-g.*//')
major_version = $(shell git describe --abbrev=0)
minor_version = $(shell git describe | sed -e 's,[^-]*-,,')
path = $(realpath .)
base = $(shell basename $(path))
export DEBFULLNAME := Mika Eloranta
export DEBEMAIL := mika.eloranta@gmail.com
rpm:
echo "__version__ = '$(version)'" > poni/version.py
cd .. ; tar -zcv --exclude=*~ --exclude=.git -f $(base)-$(version).tar.gz $(base)
$(RM) poni/version.py
rpmbuild -ta ../$(base)-$(version).tar.gz \
--define 'full_version $(version)' \
--define 'major_version $(major_version)' \
--define 'minor_version $(subst -,_,$(minor_version))'
debian:
python setup.py sdist -d ..
cp "../poni-$(version).tar.gz" "../poni_$(short_version).orig.tar.gz"
echo | dh_make -b -i -p "poni_$(version)" -c blank -f "../poni-$(version).tar.gz"
rm debian/*ex debian/*EX debian/docs debian/README.Debian
cp debian.in/* debian/
dch -v $(version) -D unstable "TODO: message"
deb-debuild: debian
debuild -us -uc
deb-clean:
rm -rf debian/
deb: debian
dpkg-buildpackage -S -us -uc
.PHONY: debian
Jump to Line
Something went wrong with that request. Please try again.