diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-06-20 17:35:44 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-06-20 18:30:56 (GMT) |
commit | 9b4f964299d9ac39865c36ab57ea8cfad0038106 (patch) | |
tree | 862e21d01bd131348565e9423f800db0baa0612a /Swift/Packaging | |
parent | e61e188ade3a42f7fd5ef4d6e5673d55e99a51f6 (diff) | |
download | swift-9b4f964299d9ac39865c36ab57ea8cfad0038106.zip swift-9b4f964299d9ac39865c36ab57ea8cfad0038106.tar.bz2 |
Use a custom debian changelog.
Diffstat (limited to 'Swift/Packaging')
-rw-r--r-- | Swift/Packaging/Debian/changelog.debian-unstable | 5 | ||||
-rwxr-xr-x | Swift/Packaging/Debian/package.sh | 17 |
2 files changed, 18 insertions, 4 deletions
diff --git a/Swift/Packaging/Debian/changelog.debian-unstable b/Swift/Packaging/Debian/changelog.debian-unstable new file mode 100644 index 0000000..f722dce --- /dev/null +++ b/Swift/Packaging/Debian/changelog.debian-unstable @@ -0,0 +1,5 @@ +swift-im (1.1-1) unstable; urgency=low + + * Initial release. Closes: #631002 + + -- Swift Package Maintainer <packages@swift.im> Mon, 20 Jun 2011 16:24:48 -0000 diff --git a/Swift/Packaging/Debian/package.sh b/Swift/Packaging/Debian/package.sh index 5f7d911..5bdb4dd 100755 --- a/Swift/Packaging/Debian/package.sh +++ b/Swift/Packaging/Debian/package.sh @@ -3,7 +3,7 @@ set -e -x export PYTHONPATH=../../../BuildTools/SCons -VERSION=`../../../BuildTools/GetBuildVersion.py swift` +VERSION=${VERSION:=`../../../BuildTools/GetBuildVersion.py swift`} DEBIAN_VERSION=`../../../BuildTools/DebianizeVersion.py $VERSION` DIRNAME=swift-im-$DEBIAN_VERSION SWIFTEN_SOVERSION=`../../../BuildTools/GetBuildVersion.py swift --major` @@ -22,18 +22,23 @@ echo "Checking out a fresh copy ..." rm -rf $DIRNAME git clone ../../../.git $DIRNAME -# Clean out 3rdParty +# Remove development files & 3rdParty files +rm -rf $DIRNAME/.git +find $DIRNAME -name .gitignore | xargs rm -f find $DIRNAME/3rdParty -type f | grep -v uuid | grep -v SConscript | xargs rm -f find $DIRNAME/3rdParty -depth -empty -type d -exec rmdir {} \; rm -rf $DIRNAME/3rdParty/SCons +# 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 mkdir -p $DIRNAME/3rdParty/Boost/uuid/boost cp -r $DIRNAME/3rdParty/Boost/src/boost/uuid $DIRNAME/3rdParty/Boost/uuid/boost # Create orig tarball for debuild -tar czf swift-im_$DEBIAN_VERSION.orig.tar.gz --exclude=$DIRNAME/.git $DIRNAME +tar czf swift-im_$DEBIAN_VERSION.orig.tar.gz $DIRNAME # Detect dependencies WEBKIT_DEPENDENCY=", libqtwebkit-dev (>= 2.0.0)" @@ -44,7 +49,11 @@ fi # Initialize debian files ln -s Swift/Packaging/Debian/debian $DIRNAME/debian -../../../BuildTools/UpdateDebianChangelog.py $DIRNAME/debian/changelog $DEBIAN_VERSION +if [ -z "$CHANGELOG" ]; then + ../../../BuildTools/UpdateDebianChangelog.py $DIRNAME/debian/changelog $DEBIAN_VERSION +else + cp $CHANGELOG $DIRNAME/debian/changelog +fi cat $DIRNAME/debian/control.in | sed -e "s/%SWIFTEN_SOVERSION%/$SWIFTEN_SOVERSION/g" | sed -e "s/%WEBKIT_DEPENDENCY%/$WEBKIT_DEPENDENCY/g" > $DIRNAME/debian/control mv $DIRNAME/debian/libswiften.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION.install mv $DIRNAME/debian/libswiften-dev.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION-dev.install |