summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-10-24 01:22:01 +0000
committeremaste <emaste@FreeBSD.org>2016-10-24 01:22:01 +0000
commit5bfa0fd12817c6fb8a546d52473156175cd9d2e5 (patch)
treef4ec9c169da5d89439055c0d0c7b3c5841264325 /sys/kern
parentaa07c9ed3b22918e62431c511f22f484090886e5 (diff)
downloadFreeBSD-src-5bfa0fd12817c6fb8a546d52473156175cd9d2e5.zip
FreeBSD-src-5bfa0fd12817c6fb8a546d52473156175cd9d2e5.tar.gz
MFC r307522: makesyscalls.sh: remove trailing space on the "created from" line
In r10905 and r10906 makesyscalls was modified to avoid emitting a literal $Id$ string in the generated file, with: gsub("[$]Id: ", "", $0) gsub(" [$]", "", $0) Then r11294 added some functionality and also tried to address the $Id$ problem in a different way, by removing every $: sed -e 's/\$//g ... This rendered the gsub infeffective. The gsub was later updated to track the $Id$ -> $FreeBSD$ switch, even though it did not do anything. Revert the addition of the s/\$//g, and update the gsub to keep the resulting format the same.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/makesyscalls.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh
index 1d3af65..e6c1515 100644
--- a/sys/kern/makesyscalls.sh
+++ b/sys/kern/makesyscalls.sh
@@ -62,7 +62,6 @@ if [ -n "$2" ]; then
fi
sed -e '
-s/\$//g
:join
/\\$/{a\
@@ -140,7 +139,7 @@ s/\$//g
printf " * $%s$\n", "FreeBSD" > systrace
}
NR == 1 {
- gsub("[$]FreeBSD: ", "", $0)
+ gsub("[$]FreeBSD: ", "FreeBSD: ", $0)
gsub(" [$]", "", $0)
printf " * created from%s\n */\n\n", $0 > syssw
OpenPOWER on IntegriCloud