From 0210711fad744fcfac67de1aa2bbba9e8fd1f29d Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 30 Dec 2016 14:35:56 +0100 Subject: [PATCH] Create a link for the OpenRA server manpage; compress the normal one The command-line arguments of the openra-server executable are the same as for openra. --- packaging/linux/deb/buildpackage.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packaging/linux/deb/buildpackage.sh b/packaging/linux/deb/buildpackage.sh index 424a8aef2f..244385d1e7 100755 --- a/packaging/linux/deb/buildpackage.sh +++ b/packaging/linux/deb/buildpackage.sh @@ -31,6 +31,10 @@ sed "s|/usr/bin|/usr/games|g" "${DEB_BUILD_ROOT}/usr/games/openra" > temp mv -f temp "${DEB_BUILD_ROOT}/usr/games/openra" chmod 0755 "${DEB_BUILD_ROOT}/usr/games/openra"* +# Link and compress the man pages +gzip -9n "${DEB_BUILD_ROOT}/usr/share/man/man6/openra.6" +ln -s openra.6.gz "${DEB_BUILD_ROOT}/usr/share/man/man6/openra-server.6.gz" + # Put the copyright and changelog in /usr/share/doc/openra/ mkdir -p "${DEB_BUILD_ROOT}/${DOCDIR}" cp copyright "${DEB_BUILD_ROOT}/${DOCDIR}/copyright"