diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-06-25 19:32:06 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-06-25 19:32:06 (GMT) |
commit | 7647b3aed3e9b0d91134ab6b57f56f80fd701b6a (patch) | |
tree | 83288128231cb1ba9634f97c62417d50adaa882f /Swift/Packaging | |
parent | 87611d97377d907d115afd3721dabd5abbbf0e26 (diff) | |
download | swift-7647b3aed3e9b0d91134ab6b57f56f80fd701b6a.zip swift-7647b3aed3e9b0d91134ab6b57f56f80fd701b6a.tar.bz2 |
Debian Packaging seems to vaguely work now.
Diffstat (limited to 'Swift/Packaging')
-rwxr-xr-x | Swift/Packaging/Debian/Makefile.inc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Swift/Packaging/Debian/Makefile.inc b/Swift/Packaging/Debian/Makefile.inc index b54a9f1..e93f995 100755 --- a/Swift/Packaging/Debian/Makefile.inc +++ b/Swift/Packaging/Debian/Makefile.inc @@ -1,24 +1,20 @@ DATE=`date +%Y%m%d` SIZE=`du -s tmpusr/usr | awk '{print $1}'` -VERSION=0.3.$DATE +VERSION=0.3.$(DATE) ARCH=amd64 DEBPATH=Swift/Packaging/Debian DEBNAME=swift-preview_$(VERSION)-$(ARCH).deb $(DEBPATH)/$(DEBNAME): all - echo "Removing old package files" rm -rf $(DEBPATH)/tmpusr mkdir -p $(DEBPATH)/tmpusr/usr/bin mkdir $(DEBPATH)/tmpusr/DEBIAN - echo "Building fake filesystem" cp Swift/QtUI/swift $(DEBPATH)/tmpusr/usr/bin - echo "Populating debian control scripts" - cat $(DEBPATH)/control | sed -e"s/\%ARCH\%/$ARCH/" -e"s/\%VERSION\%/$VERSION/" -e"s/\%SIZE\%/$SIZE/" > $(DEBPATH)/tmpusr/DEBIAN/control + cat $(DEBPATH)/control | sed -e"s/\%ARCH\%/$(ARCH)/" -e"s/\%VERSION\%/$(VERSION)/" -e"s/\%SIZE\%/$(SIZE)/" > $(DEBPATH)/tmpusr/DEBIAN/control - echo "Building package" - dpkg -b $(DEBPATH)tmpusr $(DEBPATH)/$(DEBNAME) + dpkg -b $(DEBPATH)/tmpusr $(DEBPATH)/$(DEBNAME) +.PHONY: deb deb: $(DEBPATH)/$(DEBNAME) -.PHONY: deb |