summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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