diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-04-30 10:11:43 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-04-30 16:34:38 (GMT) |
commit | d81d2608c35bef14ba1fd024b0ec4d48de03dfcc (patch) | |
tree | a733ba5174e1fca46c6396c6f3ed0d182841e4c9 /Swift/Packaging/Debian/package.sh | |
parent | a10cc927d11bf5a2ef30c07e168922b192a52561 (diff) | |
download | swift-contrib-d81d2608c35bef14ba1fd024b0ec4d48de03dfcc.zip swift-contrib-d81d2608c35bef14ba1fd024b0ec4d48de03dfcc.tar.bz2 |
Split off libswiften package.
Diffstat (limited to 'Swift/Packaging/Debian/package.sh')
-rwxr-xr-x | Swift/Packaging/Debian/package.sh | 6 |
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 |