aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2017-04-11 17:01:20 +0000
committerEd Maste <emaste@FreeBSD.org>2017-04-11 17:01:20 +0000
commit983e409609885c24fb6cb2652ee37044fe05b05e (patch)
treeccdc387b49dffc5cbf8756fcc207e53057a4966b /tools
parent7fd59cc33be0826eb941c4edc97ee24cc15b8c98 (diff)
Notes
Diffstat (limited to 'tools')
-rwxr-xr-xtools/build/options/makeman9
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/build/options/makeman b/tools/build/options/makeman
index db9cb4d02faa..bf4474a501ed 100755
--- a/tools/build/options/makeman
+++ b/tools/build/options/makeman
@@ -1,12 +1,12 @@
#!/bin/sh
#
# This file is in the public domain.
+#
+# $FreeBSD$
set -o errexit
export LC_ALL=C
-ident='$FreeBSD$'
-
t=$(mktemp -d -t makeman)
trap 'test -d $t && rm -rf $t' exit
@@ -126,12 +126,9 @@ main()
{
echo "building src.conf.5 man page from files in ${PWD}" >&2
- ident=${ident#$}
- ident=${ident% $}
fbsdid='$'FreeBSD'$'
cat <<EOF
.\" DO NOT EDIT-- this file is automatically generated.
-.\" from ${ident}
.\" ${fbsdid}
.Dd $(echo $(LC_TIME=C date +'%B %e, %Y'))
.Dt SRC.CONF 5
@@ -244,7 +241,7 @@ EOF
fi
echo ".It Va ${opt}"
- sed -e's/\$\(FreeBSD: .*\) \$/from \1/' ${opt}
+ sed -e'/\$FreeBSD.*\$/d' ${opt}
if [ -n "${targets}" ] ; then
echo '.Pp'
echo 'This is a default setting on'