Re: [Flightgear-devel] commit checker

2005-08-17 Thread Ivo
On Tuesday 02 August 2005 09:51, Melchior FRANZ wrote:
 On Tue, Aug 02, 2005 at 03:32:11AM +0200, Ivo wrote:
  On Friday 01 July 2005 14:05, Melchior FRANZ wrote:
 http://members.aon.at/mfranz/citest  [1.2kb]
 
  I'm working on a similar tool (meaning: checking sanity of files) for
  another project and this part does not work correctly with all versions
  of 'file'.

 Thanks for the info. It's basically for my personal use, so
 I'm not too worried. (BTW: I added an XML check by means of
 xmllint -- don't know if I uploaded that already). I'll look
 into that 'file' problem. Further suggestions always welcomed. :-)

Maybe you want to take a look at my code:

cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/mplayer co -P 
main/TOOLS/checktree.sh

I did my best to keep it portable, fast and flexible. The tests are not the 
same (although there is some overlap) but other tests can easily be added.

--Ivo


___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] commit checker

2005-08-02 Thread Melchior FRANZ
On Tue, Aug 02, 2005 at 03:32:11AM +0200, Ivo wrote:
 On Friday 01 July 2005 14:05, Melchior FRANZ wrote:
http://members.aon.at/mfranz/citest  [1.2kb]
 
 I'm working on a similar tool (meaning: checking sanity of files) for 
 another project and this part does not work correctly with all versions of 
 'file'.

Thanks for the info. It's basically for my personal use, so
I'm not too worried. (BTW: I added an XML check by means of
xmllint -- don't know if I uploaded that already). I'll look
into that 'file' problem. Further suggestions always welcomed. :-)

m.

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] commit checker

2005-07-01 Thread Frederic Bouvier
Quoting Melchior FRANZ:

 Here's a small shell script that can be used to check if files are good
 enough
 to be checked in:

   http://members.aon.at/mfranz/citest  [1.2kb]

Do you mean it is a script that could be put in CVS administrative files as
commitinfo ?

Head of CVSROOT/commitinfo :
# The commitinfo file is used to control pre-commit checks.
# The filter on the right is invoked with the repository and a list
# of files to check.  A non-zero exit of the filter program will
# cause the commit to be aborted.
#
# The first entry on a line is a regular expression which is tested
# against the directory that the change is being committed to, relative
# to the $CVSROOT.  For the first match that is found, then the remainder
# of the line is the name of the filter to run.
#
# If the repository name does not match any of the regular expressions in this
# file, the DEFAULT line is used, if it is specified.
#
# If the name ALL appears as a regular expression it is always used
# in addition to the first matching regex or DEFAULT.


-Fred

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


Re: [Flightgear-devel] commit checker

2005-07-01 Thread Josh Babcock
Melchior FRANZ wrote:
 Here's a small shell script that can be used to check if files are good 
 enough
 to be checked in:
 
   http://members.aon.at/mfranz/citest  [1.2kb]
 
 
 Sample output:
 
   $ cd $FG_ROOT/Aircraft  citest
   checking for spaces in filenames ...
   ./737/Instruments/Textures/eicas background.rgb
   ./A380/Models/eicas background2.rgb
   ...
   checking for upper-case extensions ...
   ./MD11/Models/cabin/CABIN_L.RGB
   ./MD11/Models/cabin/CABIN.RGB
   ...
   checking for DOS line endings ...
   ./dc3/Sounds/read-trev.txt: ASCII English text, with very long lines, with 
 CRLF line terminators
   ./Hunter/pilots-notes.txt: ISO-8859 English text, with CRLF line terminators
   ...
   checking for uncompressed textures ...
   ./beech99/Models/beech_993.rgb  could be  6.04288% of current size (246784 
 bytes less)
   ./beech99/Models/beech_992.rgb  could be  6.04288% of current size (246784 
 bytes less)
 
 
   $ $FGFS/SimGear  citest
   checking for 'if (foo) delete foo;' ...
   * if(rt)
   delete rt;
   ... in file ./simgear/scene/sky/bbcache.cxx
 
 
 Of course, some of these are a matter of taste. Of good taste. Of mine.  ;-)
 More checks to come ...
 
 m.
 
 

Speaking of which, I can't figure out a unix-ish command line method for
removing alpha channels from SGI files. pnmtools doesn't even want to
read 4 channel SGI files, and I can't see any ImageMagik option to do it.

Josh

___
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d