1#!/bin/sh 2# 3# $FreeBSD: releng/10.3/crypto/openssh/freebsd-pre-merge.sh 294693 2016-01-24 22:28:18Z des $ 4# 5 6:>keywords 7:>rcsid 8svn list -R | grep -v '/$' | \ 9while read f ; do 10 svn proplist -v $f | grep -q 'FreeBSD=%H' || continue 11 egrep -l '^(#|\.\\"|/\*)[[:space:]]+\$FreeBSD[:\$]' $f >>keywords 12 egrep -l '__RCSID\("\$FreeBSD[:\$]' $f >>rcsid 13done 14sort -u keywords rcsid | xargs perl -n -i -e ' 15 $strip = $ARGV if /\$(Id|OpenBSD):.*\$/; 16 print unless (($strip eq $ARGV || /__RCSID/) && /\$FreeBSD[:\$]/); 17' 18