"Fossies" - the Fresh Open Source Software Archive

Member "c_count-7.20/testing/showdiff.sh" (23 Nov 2002, 272 Bytes) of package /linux/privat/c_count-7.20.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 # $Id: showdiff.sh,v 7.1 2002/11/23 01:07:21 tom Exp $
    3 #
    4 # Performs regression-test comparison for 'run_tests.sh'
    5 if test ! -f $2
    6 then
    7     mv $1 $2
    8 elif ( cmp -s $1 $2 )
    9 then
   10     echo '**    (ok)'
   11 else
   12     echo '??    failed:'
   13     # show the reference on the left
   14     diff $2 $1 
   15 fi