aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh/freebsd-pre-merge.sh
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2016-01-19 14:25:22 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2016-01-19 14:25:22 +0000
commit5ecdd3c4d325eb91b33e8415ce4f6542760742c2 (patch)
treeafc63a041d9230f4905882f0f91a916fc7d9a4d0 /crypto/openssh/freebsd-pre-merge.sh
parentc1ea5e1a86e7c2d259809e32921486dc8f9e3935 (diff)
downloadsrc-5ecdd3c4d325eb91b33e8415ce4f6542760742c2.tar.gz
src-5ecdd3c4d325eb91b33e8415ce4f6542760742c2.zip
Use 'svn list -R' instead of find, and recognize comments in shell scripts
and {ssh,sshd}_config.
Notes
Notes: svn path=/head/; revision=294324
Diffstat (limited to 'crypto/openssh/freebsd-pre-merge.sh')
-rwxr-xr-xcrypto/openssh/freebsd-pre-merge.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/openssh/freebsd-pre-merge.sh b/crypto/openssh/freebsd-pre-merge.sh
index 676cabfd506c..473474c2c4da 100755
--- a/crypto/openssh/freebsd-pre-merge.sh
+++ b/crypto/openssh/freebsd-pre-merge.sh
@@ -5,10 +5,10 @@
:>keywords
:>rcsid
-find . -type f -name '*.[1-9ch]' | cut -c 3- | \
+svn list -R | grep -v '/$' | \
while read f ; do
svn proplist -v $f | grep -q 'FreeBSD=%H' || continue
- egrep -l '(\.\\"|/\*) \$FreeBSD[:\$]' $f >>keywords
+ egrep -l '^(#|\.\\"|/\*)[[:space:]]+\$FreeBSD[:\$]' $f >>keywords
egrep -l '__RCSID\("\$FreeBSD[:\$]' $f >>rcsid
done
sort -u keywords rcsid | xargs perl -n -i -e '