summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-04-30 16:51:00 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-04-30 16:51:00 (GMT)
commit1bbf5a4f431ce3aab4c851c71438f3d2e468a866 (patch)
tree0c3c1b3a7357add1d0ba965e9be981258390290f /Swift/Packaging/Debian/package.sh
parentd0c3cf701102d08afd253f515df74f33ffeed3cc (diff)
parent0fe3d2b3f37bcd2fa2cf66979e236e993823390f (diff)
downloadswift-contrib-1bbf5a4f431ce3aab4c851c71438f3d2e468a866.zip
swift-contrib-1bbf5a4f431ce3aab4c851c71438f3d2e468a866.tar.bz2
Merge branch 'swift-1.x'
* swift-1.x: Filter out some extra headers in install dir. Split off libswiften package. Only install the necessary files in the Debian package.
Diffstat (limited to 'Swift/Packaging/Debian/package.sh')
-rwxr-xr-xSwift/Packaging/Debian/package.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/Swift/Packaging/Debian/package.sh b/Swift/Packaging/Debian/package.sh
index a7017c5..0cbc886 100755
--- a/Swift/Packaging/Debian/package.sh
+++ b/Swift/Packaging/Debian/package.sh
@@ -6,6 +6,7 @@ export PYTHONPATH=../../../BuildTools/SCons
VERSION=`../../../BuildTools/GetBuildVersion.py swift`
DEBIAN_VERSION=`../../../BuildTools/DebianizeVersion.py $VERSION`
DIRNAME=swift-im-$DEBIAN_VERSION
+SWIFTEN_SOVERSION=`../../../BuildTools/GetBuildVersion.py swift --major`
if [ -z "$DEBIAN_VERSION" ]; then
echo "Unable to determine version"
@@ -14,6 +15,7 @@ fi
echo "Cleaning up old packages ..."
rm -f swift-im_*
+rm -f libswiften*
rm -rf swift-im-*
echo "Checking out a fresh copy ..."
@@ -28,6 +30,10 @@ cp -r $DIRNAME/3rdParty/Boost/src/boost/uuid $DIRNAME/3rdParty/Boost/uuid/boost
ln -s Swift/Packaging/Debian/debian $DIRNAME/debian
../../../BuildTools/UpdateDebianChangelog.py $DIRNAME/debian/changelog $DEBIAN_VERSION
+cat $DIRNAME/debian/control.in | sed -e "s/%SWIFTEN_SOVERSION%/$SWIFTEN_SOVERSION/g" > $DIRNAME/debian/control
+cat $DIRNAME/debian/shlibs.in | sed -e "s/%SWIFTEN_SOVERSION%/$SWIFTEN_SOVERSION/g" > $DIRNAME/debian/shlibs
+mv $DIRNAME/debian/libswiften.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION.install
+mv $DIRNAME/debian/libswiften-dev.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION-dev.install
echo "Building ..."
cd $DIRNAME