File:  [Public] / XML / DIFF
Revision 1.8: download - view: text, annotated - select for diffs
Sun Oct 15 10:20:45 2000 UTC (23 years, 7 months ago) by veillard
Branches: MAIN
CVS tags: LIBXML_2_2_8, LIBXML_2_2_6, HEAD
Enviroment enhancements, closing #25107, Daniel

#!/bin/sh
echo diffing sources ...
LIST=""
MISSING=""
# xmlversion.h.in Makefile.am
for i in *.c *.h TODO include/Makefile.am \
      win32/Makefile.mingw win32/README.MSDev win32/libxml2/libxml2.dsp
do
  if [ "$i" != "config.h" -a "$i" != "xmlmemory.h" -a "$i" != "xmlversion.h" ]
  then
      DIFF=`diff --brief /gnome/src/gnome-xml/$i $i 2>&1`
      if [ "`echo $DIFF | grep differ`" != "" ]
      then
          LIST="$LIST $i"
	  LINES="`diff /gnome/src/gnome-xml/$i $i | wc -l`"
	  if [ "`expr $LINES \< 100`" = "1" ]
	  then
	      echo "====> $i:"
	      diff /gnome/src/gnome-xml/$i $i
	  else
	      echo "====> $i: more than 100 lines patches"
	  fi
      fi
      if [ "`echo $DIFF | grep 'No such file'`" != "" ]
      then
          MISSING="$MISSING $i"
      fi
  fi
done

if [ -e result/conf ]
then
    rm -rf result_conf
    mv result/conf result_conf
fi
if [ "$MISSING" != "" ]
then
    echo "missing files : $MISSING"
fi
if [ "$LIST" != "" ]
then
    echo "need to run : cp $LIST /gnome/src/gnome-xml"
fi
(find test -not -name CVS -not -name \*.sgm\* -not -name Docbook -not -name Entries -not -name Entries.Log -not -name Repository -not -name Root -not -type d  -exec diff --brief {} /gnome/src/gnome-xml/{} \; | sed "s+^Files +cp +" | sed "s+ and + +" | sed "s+differ++" ) 2> /tmp/diff.err
sed "s+^diff: /gnome/src/gnome-xml/\([-a-zA-Z0-9\._/]*\): No such file or directory+cp \1 /gnome/src/gnome-xml/\1+" < /tmp/diff.err
sed "s+^diff: /gnome/src/gnome-xml/\([-a-zA-Z0-9\._/]*\): No such file or directory+(cd /gnome/src/gnome-xml ; cvs -z9 add \1)+" < /tmp/diff.err
(find result -not -name CVS -not -name \*.sgm\* -not -name Docbook -not -name Entries -not -name Entries.Log -not -name Repository -not -name Root -not -type d  -exec diff --brief {} /gnome/src/gnome-xml/{} \; | sed "s+^Files +cp +" | sed "s+ and + +" | sed "s+differ++" ) 2> /tmp/diff.err 
sed "s+^diff: /gnome/src/gnome-xml/\([-a-zA-Z0-9\._/]*\): No such file or directory+cp \1 /gnome/src/gnome-xml/\1+" < /tmp/diff.err
sed "s+^diff: /gnome/src/gnome-xml/\([-a-zA-Z0-9\._/]*\): No such file or directory+(cd /gnome/src/gnome-xml ; cvs -z9 add \1)+" < /tmp/diff.err
(find SAXresult -not -name CVS -not -name \*.sgm\* -not -name Docbook -not -name Entries -not -name Entries.Log -not -name Repository -not -name Root -not -type d  -exec diff --brief {} /gnome/src/gnome-xml/{} \; | sed "s+^Files +cp +" | sed "s+ and + +" | sed "s+differ++" ) 2> /tmp/diff.err 
sed "s+^diff: /gnome/src/gnome-xml/\([-a-zA-Z0-9\._/]*\): No such file or directory+cp \1 /gnome/src/gnome-xml/\1+" < /tmp/diff.err
sed "s+^diff: /gnome/src/gnome-xml/\([-a-zA-Z0-9\._/]*\): No such file or directory+(cd /gnome/src/gnome-xml ; cvs -z9 add \1)+" < /tmp/diff.err


if [ -e result_conf ]
then
    mv result_conf result/conf
fi

Webmaster