Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/less Add handling for manual pages:
details: https://anonhg.NetBSD.org/src/rev/cd9a2fc7a224
branches: trunk
changeset: 766889:cd9a2fc7a224
user: tron <tron%NetBSD.org@localhost>
date: Sun Jul 03 17:56:26 2011 +0000
description:
Add handling for manual pages:
1.) Remove the formatted ones before import.
2.) Rename the unformatted ones from "*.nro" to "*.1" to keep our
makefile framework happy.
diffstat:
external/bsd/less/less2netbsd | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (29 lines):
diff -r 4c82136b8577 -r cd9a2fc7a224 external/bsd/less/less2netbsd
--- a/external/bsd/less/less2netbsd Sun Jul 03 17:47:15 2011 +0000
+++ b/external/bsd/less/less2netbsd Sun Jul 03 17:56:26 2011 +0000
@@ -79,7 +79,7 @@
rm -f $REMOVE_FILES
# Add NetBSD RCS Ids.
-find . -type f -name "*.[ch]" |
+find . -type f -name "*.[ch]" -print |
while read FILENAME
do
if ! grep -q '\$NetBSD' "$FILENAME"
@@ -93,6 +93,16 @@
fi
done
+# Remove formatted manual pages.
+find . -type f -name "*.man" -delete
+
+# Rename unformatted manual pages.
+find . -type f -name "*.nro" -print |
+while read FILENAME
+do
+ mv "$FILENAME" "${FILENAME%.nro}.1"
+done
+
# Determine the version number.
VERSION=$(sed -n -e 's#char version\[\] = "\(.*\)";#\1#p' version.c)
Home |
Main Index |
Thread Index |
Old Index