/[gcl]/gcl/xbin/move-if-changed
ViewVC logotype

Diff of /gcl/xbin/move-if-changed

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by camm, Fri Jun 7 17:55:30 2002 UTC revision 1.4 by camm, Mon Jun 17 16:45:00 2002 UTC
# Line 6  F1=$1 Line 6  F1=$1
6  F2=$2  F2=$2
7    
8    
9  if [ $# -ge 2 ] && [ -e $2 ] && cmp $1 $2 > /dev/null  if [ $# -ge 2 ] && [ -f $2 ] && cmp $1 $2 > /dev/null
10  then  echo $1 and $2  are identical ;  then  echo $1 and $2  are identical ;
11  else  else
12  echo $1 and $2 were not the same.  echo $1 and $2 were not the same.

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26