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:
parent
ce5921ba4c
commit
5309d41e27
1 changed files with 0 additions and 13 deletions
13
clean.sh
13
clean.sh
|
@ -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}"
|
|
||||||
|
|
Loading…
Reference in a new issue