[MPlayer-dev-eng] [PATCH?] [RFC] Script to check "sanity" of MPlayer sources

Torinthiel torinthiel at megapolis.pl
Sat Aug 6 23:42:48 CEST 2005


On Sat, Aug 06, 2005 at 09:05:32PM +0200, Ivo wrote:
> Updated version:

I have a slightly better/worse method for all_filenames:
Better, because it catches exactly the files in repository, worse
because it needs a checkout (i.e. it depends on CVS subdirectories)

all_filenames()
{ ListCVS . }

ListCVS()
{
  for f in `grep '^/' $1/CVS/Entries|cut -d/ -f2`; do
    echo $1/$f
  done
  for k in `grep '^D/' $1/CVS/Entries|cut -d/ -f2`; do
    ListCVS $1/$k
  done
}

And I've successfully used for f in `all_filenames`; do ... instead of
while read... - the first is IMHO more readable.
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: 0906A2CE fpr: EE3E DFB4 C4D6 E22E 8999  D714 7CEB CDDC 0906 A2CE
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050806/04572aa6/attachment.pgp>


More information about the MPlayer-dev-eng mailing list