summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
Diffstat (limited to 'Swift')
-rwxr-xr-xSwift/Packaging/Debian/package.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/Packaging/Debian/package.sh b/Swift/Packaging/Debian/package.sh
index dee5346..62dfff0 100755
--- a/Swift/Packaging/Debian/package.sh
+++ b/Swift/Packaging/Debian/package.sh
@@ -30,60 +30,62 @@ rm -f swift-im_*
rm -f libswiften*
rm -rf swift-im-*
TARBALLBARE="swift-im_$DEBIAN_VERSION.orig.tar.gz"
TARBALL="${SHARED_DIR}${TARBALLBARE}"
if [ -f $TARBALL ]; then
echo "Found existing tarball for the right version, using ${TARBALL}"
echo "Cleaning out any previous builds in ${DIRNAME} and re-extracting"
rm -rf $DIRNAME
cp $TARBALL tmp.tmp
mv tmp.tmp $TARBALLBARE
tar xzf $TARBALLBARE
else
echo "No shared tarball found"
echo "Checking out a fresh copy ..."
rm -rf $DIRNAME
git clone ../../../.git $DIRNAME
# Remove development files & 3rdParty files
rm -rf $DIRNAME/.git
find $DIRNAME -name .gitignore | xargs rm -f
if [ -z "$SWIFT_COPY_UUID" ]; then
find $DIRNAME/3rdParty -type f | grep -v SConscript | xargs rm -f
else
find $DIRNAME/3rdParty -type f | grep -v uuid | grep -v SConscript | grep -v miniupnp | grep -v natpmp || xargs rm -f
fi
find $DIRNAME/3rdParty -depth -empty -type d -exec rmdir {} \;
rm -rf $DIRNAME/3rdParty/SCons
rm -rf $DIRNAME/Swift/Packaging/Debian
+ rm -rf $DIRNAME/BuildTools/DocBook/Fonts
+ rm -rf $DIRNAME/BuildTools/Git/Hooks/commit-msg
# Initialize the build version
echo $VERSION > $DIRNAME/VERSION.swift
# Fork local Boost UUID copy
# FIXME: This shouldn't be necessary, but SCons isn't picking up the generated headers for compilation
if [ ! -z "$SWIFT_COPY_UUID" ]; then
mkdir -p $DIRNAME/3rdParty/Boost/uuid/boost
cp -r $DIRNAME/3rdParty/Boost/src/boost/uuid $DIRNAME/3rdParty/Boost/uuid/boost
fi
# Create orig tarball
tar czf $TARBALLBARE $DIRNAME
cp $TARBALLBARE tmp.tmp
mv tmp.tmp $TARBALL
fi
# Detect dependencies
WEBKIT_DEPENDENCY=", libqtwebkit-dev (>= 2.0.0)"
DISTRIBUTION=`lsb_release -s -i`-`lsb_release -s -c`
if [ "$DISTRIBUTION" = "Debian-squeeze" -o "$DISTRIBUTION" = "Ubuntu-lucid" -o ! -z "$SWIFT_FORCE_LUCID" ]; then
WEBKIT_DEPENDENCY=""
fi
# Initialize debian files
cp -r debian $DIRNAME/debian
if [ -z "$CHANGELOG" ]; then
../../../BuildTools/UpdateDebianChangelog.py $DIRNAME/debian/changelog $DEBIAN_VERSION
else