Skip to content

Commit

Permalink
Uncompress all man pages (issue #294)
Browse files Browse the repository at this point in the history
Interestingly some ports did install compressed man pages, so the
framework needs to decompress them.  When symlinks are involved, the port
needed patching to get the right result.
  • Loading branch information
jrmarino committed Aug 11, 2024
1 parent 32df789 commit 53dc7b9
Show file tree
Hide file tree
Showing 721 changed files with 41,833 additions and 41,939 deletions.
16 changes: 16 additions & 0 deletions Scripts/Ravenports_Mk/raven.mk
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,22 @@ compress-man:
@${ECHO_MSG} "====> Man page compression complete"
.endif

.if !target(decompress-man)

decompress-man:
@${ECHO_MSG} "====> Start decompressing man pages"
@mdirs= ; \
for dir in ${MANDIRS:S/^/${STAGEDIR}/} ; do \
[ -d $$dir ] && mdirs="$$mdirs $$dir" ;\
done ; \
for dir in $$mdirs; do \
${FIND} $$dir -type f -name "*.gz" -links 1 -exec ${GUNZIP_CMD} --verbose {} \; ; \
done
@${ECHO_MSG} "====> Man page decompression complete"

.endif


.if !target(install-rc-script)
.undef RC_SUBR_USED
. for sp in ${SUBPACKAGES}
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Ravenports_Mk/raven.sequence.mk
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ _STAGE_SEQ+= 700:post-install \
800:post-stage \
820:post-stage-option \
840:post-stage-opsys \
850:compress-man \
850:decompress-man \
860:install-rc-script \
870:install-smf-manifest \
880:install-license \
Expand Down
6 changes: 3 additions & 3 deletions bucket_00/tinycdb/manifests/plist.man
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
share/man/man1/cdb.1.gz
share/man/man3/cdb.3.gz
share/man/man5/cdb.5.gz
share/man/man1/cdb.1
share/man/man3/cdb.3
share/man/man5/cdb.5
2 changes: 1 addition & 1 deletion bucket_00/xorg-twm/manifests/plist.man
Original file line number Diff line number Diff line change
@@ -1 +1 @@
share/man/man1/twm.1.gz
share/man/man1/twm.1
6 changes: 3 additions & 3 deletions bucket_01/fltk/manifests/plist.man
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
share/man/man1/fltk-config.1.gz
share/man/man1/fluid.1.gz
share/man/man3/fltk.3.gz
share/man/man1/fltk-config.1
share/man/man1/fluid.1
share/man/man3/fltk.3
2 changes: 1 addition & 1 deletion bucket_01/iocell/manifests/plist.man
Original file line number Diff line number Diff line change
@@ -1 +1 @@
share/man/man8/iocell.8.gz
share/man/man8/iocell.8
Loading

0 comments on commit 53dc7b9

Please sign in to comment.