svn commit: r294324 - head/crypto/openssh

Dag-Erling Smørgrav des at FreeBSD.org
Tue Jan 19 14:25:24 UTC 2016


Author: des
Date: Tue Jan 19 14:25:22 2016
New Revision: 294324
URL: https://svnweb.freebsd.org/changeset/base/294324

Log:
  Use 'svn list -R' instead of find, and recognize comments in shell scripts
  and {ssh,sshd}_config.

Modified:
  head/crypto/openssh/freebsd-pre-merge.sh

Modified: head/crypto/openssh/freebsd-pre-merge.sh
==============================================================================
--- head/crypto/openssh/freebsd-pre-merge.sh	Tue Jan 19 14:15:09 2016	(r294323)
+++ head/crypto/openssh/freebsd-pre-merge.sh	Tue Jan 19 14:25:22 2016	(r294324)
@@ -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 '


More information about the svn-src-all mailing list