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.
This commit is contained in:
tron 2011-07-03 17:56:26 +00:00
parent 81ab4d12a9
commit 68becace4b
1 changed files with 11 additions and 1 deletions

View File

@ -79,7 +79,7 @@ REMOVE_FILES="Makefile config.log config.status configure.lineno"
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 @@ do
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)