#!/bin/sh # # $FreeBSD: releng/12.1/crypto/openssh/freebsd-pre-merge.sh 294324 2016-01-19 14:25:22Z des $ # $BSDSUniX $ # :>keywords :>rcsid svn list -R | grep -v '/$' | \ while read f ; do svn proplist -v $f | grep -q 'BSDSUniX=%H' || continue egrep -l '^(#|\.\\"|/\*)[[:space:]]+\$BSDSUniX[:\$]' $f >>keywords egrep -l '__RCSID\("\$BSDSUniX[:\$]' $f >>rcsid done sort -u keywords rcsid | xargs perl -n -i -e ' $strip = $ARGV if /\$(Id|OpenBSD):.*\$/; print unless (($strip eq $ARGV || /__RCSID/) && /\$BSDSUniX[:\$]/); '