diff options
author | Joanna Hulboj <joanna.hulboj@isode.com> | 2017-03-09 10:31:32 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2017-03-15 12:07:04 (GMT) |
commit | e7d414e233b46e3ede399cb7ef385b0d078cafc9 (patch) | |
tree | 32375e2ba8c5b254f43c86872abf6173e45209d5 /Swift/Packaging/Debian/package.sh | |
parent | 87d5f54a90f2759aae587f01650e44aee8f2fe3f (diff) | |
download | swift-e7d414e233b46e3ede399cb7ef385b0d078cafc9.zip swift-e7d414e233b46e3ede399cb7ef385b0d078cafc9.tar.bz2 |
Add automatic man generation to the Linux build for Swift
Test-Information:
Tested under CentOS.
Run script to generate a package under Linux, swift-im.1 and swiften-config.1 are generated.
Change-Id: Idf0b159a94e05349b196f019bbc91127095a1d16
Diffstat (limited to 'Swift/Packaging/Debian/package.sh')
-rwxr-xr-x | Swift/Packaging/Debian/package.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Swift/Packaging/Debian/package.sh b/Swift/Packaging/Debian/package.sh index 62dfff0..d19f5dc 100755 --- a/Swift/Packaging/Debian/package.sh +++ b/Swift/Packaging/Debian/package.sh @@ -95,6 +95,18 @@ cat $DIRNAME/debian/control.in | sed -e "s/%SWIFTEN_SOVERSION%/$SWIFTEN_SOVERSIO rm $DIRNAME/debian/control.in mv $DIRNAME/debian/libswiften.install $DIRNAME/debian/libswiften$SWIFTEN_SOVERSION.install cat ../../../COPYING.thirdparty | tail -n +3 >> $DIRNAME/debian/copyright +# Generate updated man-page if possible +if type "help2man" > /dev/null 2>&1; then + if [ -f ../../QtUI/swift-im ]; then + help2man -m "Swift Manual" -S "Swift" -n "swift-im" -N ../../QtUI/swift-im > $DIRNAME/debian/swift-im.1 + fi + if [ -f ../../../Swiften/Config/swiften-config ]; then + help2man -m "Swift Manual" -S "swiften-config" -n "swiften-config" -N ../../../Swiften/Config/swiften-config > $DIRNAME/debian/swiften-config.1 + fi +else + >2& echo "Unable to generate man pages. Please ensure that help2man is installed" + exit 1; +fi # Build cd $DIRNAME |