mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
18 lines
429 B
Bash
Executable file
18 lines
429 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
:>keywords
|
|
:>rcsid
|
|
svn list -R | grep -v '/$' | \
|
|
while read f ; do
|
|
svn proplist -v $f | grep -q 'FreeBSD=%H' || continue
|
|
egrep -l '^(#|\.\\"|/\*)[[:space:]]+\$FreeBSD[:\$]' $f >>keywords
|
|
egrep -l '__RCSID\("\$FreeBSD[:\$]' $f >>rcsid
|
|
done
|
|
sort -u keywords rcsid | xargs perl -n -i -e '
|
|
$strip = $ARGV if /\$(Id|OpenBSD):.*\$/;
|
|
print unless (($strip eq $ARGV || /__RCSID/) && /\$FreeBSD[:\$]/);
|
|
'
|