summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-09-26 11:11:51 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-09-26 15:55:42 (GMT)
commitbbe1d048955fb9e03769a92387b83389ac3fd781 (patch)
tree34ba7f4c6a1e2c05283970affa2dc939726f24da /BuildTools
parent60e4ab9985c04acd399265d793d250a1b24e3412 (diff)
downloadswift-contrib-bbe1d048955fb9e03769a92387b83389ac3fd781.zip
swift-contrib-bbe1d048955fb9e03769a92387b83389ac3fd781.tar.bz2
Added debian packaging script.
Diffstat (limited to 'BuildTools')
-rwxr-xr-xBuildTools/package_debian.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/BuildTools/package_debian.sh b/BuildTools/package_debian.sh
new file mode 100755
index 0000000..3d01243
--- /dev/null
+++ b/BuildTools/package_debian.sh
@@ -0,0 +1,10 @@
+VERSION=1.0
+PACKAGE=swift-$VERSION
+
+rm -rf $PACKAGE
+git archive --format=tar --prefix=$PACKAGE/ HEAD | tar x
+cp -r Swift/Packaging/Debian $PACKAGE/debian
+pushd $PACKAGE
+SWIFT_VERSION=$VERSION dpkg-buildpackage -rfakeroot
+popd
+rm -rf $PACKAGE