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:
parent
81ab4d12a9
commit
68becace4b
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue