summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2011-12-14 17:35:41 (GMT)
committerKevin Smith <git@kismith.co.uk>2011-12-14 17:35:41 (GMT)
commit9f4614d89fa3d69902b6f69d1cb775fc1c620431 (patch)
treec2fe9465933f884f41f89371291432fb082977e3 /Swift/Packaging/Source
parent169e5fa001c817b170da6f991edfa994cf2d7f45 (diff)
downloadswift-9f4614d89fa3d69902b6f69d1cb775fc1c620431.zip
swift-9f4614d89fa3d69902b6f69d1cb775fc1c620431.tar.bz2
Allow excluding from source tarballs
Diffstat (limited to 'Swift/Packaging/Source')
-rwxr-xr-xSwift/Packaging/Source/package.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/Swift/Packaging/Source/package.sh b/Swift/Packaging/Source/package.sh
index ef1e9a3..4d229a6 100755
--- a/Swift/Packaging/Source/package.sh
+++ b/Swift/Packaging/Source/package.sh
@@ -1,5 +1,8 @@
#!/bin/sh
+## For a Swiften-only tarball, try
+## EXCLUDE_FOLDERS="Swift Sluift Swiftob Limber Slimber" ./package.sh
+
export PYTHONPATH=../../../BuildTools/SCons
VERSION=`../../../BuildTools/GetBuildVersion.py swift`
DIRNAME=swift-$VERSION
@@ -18,5 +21,12 @@ git clone ../../../.git $DIRNAME
echo "$VERSION" > $DIRNAME/VERSION.swift
rm -rf $DIRNAME/.git
+echo "Excluding folders based on environment variable EXCLUDE_FOLDERS='$EXCLUDE_FOLDERS'"
+for FOLDER in $EXCLUDE_FOLDERS;
+do
+ echo "Excluding $FOLDER"
+ rm -rf $DIRNAME/$FOLDER
+done
+
echo "Creating tarball ..."
tar czf $DIRNAME.tar.gz $DIRNAME