Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jan 2016 14:25:22 +0000 (UTC)
From:      =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= <des@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r294324 - head/crypto/openssh
Message-ID:  <201601191425.u0JEPMLY016704@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 '



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601191425.u0JEPMLY016704>