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

Ivo ivop at euronet.nl
Sat Aug 6 02:07:56 CEST 2005


Hi,

I wrote a small script to check MPlayer's sourcecode for anomalies. Maybe 
it's handy to include this in tools or something? Any comments appreciated.

Copy to main/. and run from there.

$ ./checktree.sh -help
./checktree.sh: command line switches:

        -(no)spaces        test for spaces in filenames [default: yes]
        -(no)extensions    test for uppercase extensions [default: yes]
        -(no)crlf          test for MSDOS line endings [default: yes]
        -(no)trailws       test for trailing whitespace [default: no]
        -(no)rcsid         test for missing RCS Id's [default: no]

        -(no)all           enable all tests [default: no]

        -(no)color         colored output [default: yes]
        -(no)head          print heading for each test [default: yes]

Typical output:

$ ./checktree.sh 
checking for spaces in filenames ...
checking for uppercase extensions ...
./libavcodec/alpha/dsputil_alpha_asm.S
./libavcodec/alpha/motion_est_mvi_asm.S
./libavcodec/armv4l/dsputil_arm_s.S
./libavcodec/armv4l/jrevdct_arm.S
./libavcodec/armv4l/simple_idct_arm.S
./loader/wrapper.S
checking for MSDOS line endings ...
./DOCS/xml/hu/bugs.xml
./DOCS/xml/hu/cd-dvd.xml
./DOCS/xml/hu/codecs.xml
./DOCS/xml/hu/encoding-guide.xml
./DOCS/xml/hu/faq.xml
./DOCS/xml/hu/install.xml
./DOCS/xml/hu/mail-lists.xml
./DOCS/xml/hu/mencoder.xml
./DOCS/xml/hu/ports.xml
./DOCS/xml/hu/usage.xml
./help/help_mp-hu.h
./loader/qtx/qtxload.c
./loader/qtx/qtxsdk/select.h
./loader/com.h
./loader/module.c
./loader/win32.c
./loader/wine/avifmt.h
./tremor/framing.c

$ ./checktree.sh -noall -nohead -trailws | wc -l
   1312

$ ./checktree.sh -noall -nohead -rcsid | wc -l
   2353

--Ivo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checktree.sh
Type: application/x-shellscript
Size: 4228 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050806/033e0c98/attachment.bin>


More information about the MPlayer-dev-eng mailing list