Check-in [28a2ce8980]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Document compress-man
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 28a2ce8980c4d8d20e3f4048d95a253969419bcd
User & Date: bapt 2013-09-19 22:19:10
Context
2013-09-21
22:57
Fix the su sequence check-in: 471b51eaec user: bapt tags: trunk
2013-09-19
22:19
Document compress-man check-in: 28a2ce8980 user: bapt tags: trunk
22:04
Fix info handling in stage check-in: 6ac02a07d5 user: bapt tags: trunk
Changes

Changes to stage.patch.

562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
...
586
587
588
589
590
591
592



593
594
595
596
597
598
599
 .endif
Index: bsd.stage.mk
===================================================================
diff --git a/head/Mk/bsd.stage.mk b/head/Mk/bsd.stage.mk
new file mode 10644
--- /dev/null	(revision 0)
+++ b/head/Mk/bsd.stage.mk	(working copy)
@@ -0,0 +1,90 @@
+#-*- tab-width: 4; -*-
+# ex:ts=4
+#
+# $FreeBSD$
+#
+
+STAGEDIR?=	${WRKDIR}/stage
................................................................................
+.if defined(USE_LINUX) && ${PREFIX} != ${LINUXBASE_REL}
+	@${MKDIR} ${STAGEDIR}${LINUXBASE_REL}
+	@${MTREE_CMD} ${MTREE_LINUX_ARGS} ${STAGEDIR}${LINUXBASE_REL} > /dev/null
+.endif
+.endif
+.endif
+



+.if !target(compress-man)
+compress-man:
+	@${ECHO_CMD} "====> Compressing man pages"
+	@${FIND} ${STAGEDIR}${MANPREFIX}/man -type f \! -name "*.gz" -links 1 -exec ${GZIP_CMD} {} \;
+	@${FIND} ${STAGEDIR}${MANPREFIX}/man -type f \! -name "*.gz" \! -links 1 -print -exec ${STAT} -f '%i' {} \; | \
+		${SORT} -u | while read inode ; do \
+			unset ref ; \







|







 







>
>
>







562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
...
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
 .endif
Index: bsd.stage.mk
===================================================================
diff --git a/head/Mk/bsd.stage.mk b/head/Mk/bsd.stage.mk
new file mode 10644
--- /dev/null	(revision 0)
+++ b/head/Mk/bsd.stage.mk	(working copy)
@@ -0,0 +1,93 @@
+#-*- tab-width: 4; -*-
+# ex:ts=4
+#
+# $FreeBSD$
+#
+
+STAGEDIR?=	${WRKDIR}/stage
................................................................................
+.if defined(USE_LINUX) && ${PREFIX} != ${LINUXBASE_REL}
+	@${MKDIR} ${STAGEDIR}${LINUXBASE_REL}
+	@${MTREE_CMD} ${MTREE_LINUX_ARGS} ${STAGEDIR}${LINUXBASE_REL} > /dev/null
+.endif
+.endif
+.endif
+
+# Compress all manpage not already compressed which are not hardlinks
+# Find all manpages which are not compressed and are hadlinks, and only get the list of inodes concerned, for each of them compress the first one found and recreate the hardlinks for the others
+# Fixes all dead symlinks left by the previous round
+.if !target(compress-man)
+compress-man:
+	@${ECHO_CMD} "====> Compressing man pages"
+	@${FIND} ${STAGEDIR}${MANPREFIX}/man -type f \! -name "*.gz" -links 1 -exec ${GZIP_CMD} {} \;
+	@${FIND} ${STAGEDIR}${MANPREFIX}/man -type f \! -name "*.gz" \! -links 1 -print -exec ${STAT} -f '%i' {} \; | \
+		${SORT} -u | while read inode ; do \
+			unset ref ; \