Date: Wed, 18 Jun 2003 02:32:58 -0700 (PDT) From: Dag-Erling Smorgrav <des@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 33318 for review Message-ID: <200306180932.h5I9WwPC088195@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=33318 Change 33318 by des@des.at.des.thinksec.com on 2003/06/18 02:32:54 Change '-type f' to '-not -type d' to make sure we also get symlinks and whatnot. Affected files ... .. //depot/projects/openpam/clean.sh#2 edit Differences ... ==== //depot/projects/openpam/clean.sh#2 (text+ko) ==== @@ -1,11 +1,11 @@ #!/bin/sh # -# $P4: //depot/projects/openpam/clean.sh#1 $ +# $P4: //depot/projects/openpam/clean.sh#2 $ tmpfile="/tmp/openpam-clean.$$" p4 files ... | grep -v 'delete change' | sed 's|^.*/openpam/||; s|#.*$||' > "${tmpfile}" -find . -type f | cut -c 3- | while read file ; do +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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306180932.h5I9WwPC088195>
