diff options
author | Tobias Markmann <tm@ayena.de> | 2018-02-07 15:11:00 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2018-02-09 16:29:58 (GMT) |
commit | d29e1624e38b528a7ae0e4cba83e4a790102aa8d (patch) | |
tree | 3a2d1d250e0d6e7fd731aa15522d2525f151e3ea /Swift/Packaging/Debian/package.sh | |
parent | e2048d327800f93d6d5b647a7b0c2ff2abc5e93b (diff) | |
download | swift-d29e1624e38b528a7ae0e4cba83e4a790102aa8d.zip swift-d29e1624e38b528a7ae0e4cba83e4a790102aa8d.tar.bz2 |
Move man page generation from package.sh to scons
Pass help2man=1 to have scons build man page sources via
help2man.
Adjusted package.sh to use scons to build man pages.
Test-Information:
Tested on Ubuntu 16.04 and it generated man page sources
when help2man=1.
Tested package_all_platforms on Ubuntu 16.04. The build does
not fail due to missing man pages anymore.
Change-Id: I6c62bc3f666ffd9f926038045672eb6e456082e5
Diffstat (limited to 'Swift/Packaging/Debian/package.sh')
-rwxr-xr-x | Swift/Packaging/Debian/package.sh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Swift/Packaging/Debian/package.sh b/Swift/Packaging/Debian/package.sh index d19f5dc..62dfff0 100755 --- a/Swift/Packaging/Debian/package.sh +++ b/Swift/Packaging/Debian/package.sh @@ -95,18 +95,6 @@ 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 |