blob: ef1e9a3ab6ec1ffb99c68ec95797810d7a65f656 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
export PYTHONPATH=../../../BuildTools/SCons
VERSION=`../../../BuildTools/GetBuildVersion.py swift`
DIRNAME=swift-$VERSION
if [ -z "$VERSION" ]; then
echo "Unable to determine version"
exit -1
fi
echo "Cleaning up old sources ..."
rm -rf swift-*
echo "Checking out a fresh copy ..."
rm -rf $DIRNAME
git clone ../../../.git $DIRNAME
echo "$VERSION" > $DIRNAME/VERSION.swift
rm -rf $DIRNAME/.git
echo "Creating tarball ..."
tar czf $DIRNAME.tar.gz $DIRNAME
|