This script was written to work around a limitation in Perforce, and is no

longer required.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@321 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2006-02-16 20:34:46 +00:00
parent ce5921ba4c
commit 5309d41e27

View file

@ -1,13 +0,0 @@
#!/bin/sh
#
# $Id$
tmpfile="/tmp/openpam-clean.$$"
p4 files ... | grep -v 'delete change' |
sed 's|^.*/openpam/||; s|#.*$||' > "${tmpfile}"
find . -not -type d | cut -c 3- | while read file ; do
grep "^${file}\$" "${tmpfile}" >/dev/null || rm -v "${file}"
done
find . -type d -empty -print -delete
rm "${tmpfile}"