You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-i18n/man-pages-de/files/man-pages-de-1.3-bzip2.patch

20 lines
604 B

--- a/po/generate-manpage.sh
+++ b/po/generate-manpage.sh
@@ -38,6 +38,16 @@
original="$uncompressed_manpage"
fi
fi
+# Try a bzip'ed version
+if [ ! -f "$original" ]; then
+ original=/usr/share/man/man$section/$manpage.bz2
+ if [ -f "$original" ]; then
+ # The manpage exists, but needs to be decompressed
+ uncompressed_manpage=`mktemp`
+ bzip2 -d -c "$original" > "$uncompressed_manpage"
+ original="$uncompressed_manpage"
+ fi
+fi
# Cannot generate manpage if the original could not be found
if [ ! -f "$original" ]; then
echo "The original manpage for $manpage could not be found." >&2