]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - crypto/openssh/freebsd-pre-merge.sh
Import device-tree files from Linux 5.13
[FreeBSD/FreeBSD.git] / crypto / openssh / freebsd-pre-merge.sh
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 :>keywords
7 :>rcsid
8 git ls-files | \
9 while read f ; do
10         egrep -l '^(#|\.\\"|/\*)[[:space:]]+\$FreeBSD[:\$]' $f >>keywords
11         egrep -l '__RCSID\("\$FreeBSD[:\$]' $f >>rcsid
12 done
13 sort -u keywords rcsid | xargs perl -n -i -e '
14         $strip = $ARGV if /\$(Id|OpenBSD):.*\$/;
15         print unless (($strip eq $ARGV || /__RCSID/) && /\$FreeBSD[:\$]/);
16 '