qsos-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qsos-commits] qsos/tools/checktree checktree


From: Gonéri Le Bouder
Subject: [Qsos-commits] qsos/tools/checktree checktree
Date: Mon, 24 Apr 2006 16:20:28 +0000

CVSROOT:        /sources/qsos
Module name:    qsos
Branch:         
Changes by:     Gonéri Le Bouder <address@hidden>      06/04/24 16:20:28

Modified files:
        tools/checktree: checktree 

Log message:
        add syncglobaldesc

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qsos/qsos/tools/checktree/checktree.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: qsos/tools/checktree/checktree
diff -u qsos/tools/checktree/checktree:1.1 qsos/tools/checktree/checktree:1.2
--- qsos/tools/checktree/checktree:1.1  Tue Apr 18 09:48:40 2006
+++ qsos/tools/checktree/checktree      Mon Apr 24 16:20:28 2006
@@ -1,29 +1,33 @@
 #!/bin/sh
-# $Id: checktree,v 1.1 2006/04/18 09:48:40 goneri Exp $
+# $Id: checktree,v 1.2 2006/04/24 16:20:28 goneri Exp $
 # Gonéri Le Bouder
 
-SHOWTEMPLATE="../showtemplate/showtemplate.pl"
 DIR=`pwd`
+SHOWTEMPLATE=$DIR"/../showtemplate/showtemplate.pl"
+SYNCSECTIONDESC=$DIR"/../syncglobaldesc/syncglobaldesc"
 cd ../../sheet/
 if [ ! -f "global.xml" ]; then
   echo "global.xml doesn't exist in this tree"
   exit 1
 fi
 
+# First i try to sync file desc*
 for file in `find -name '*.qsos' -type f|grep -v template`;do
+  echo "syncing desc: $file"
+  $SYNCSECTIONDESC -t global.xml -f $file
+done
  
-
-  $DIR/$SHOWTEMPLATE --global -f $file > `dirname $file`/global.tmp
+# now i do the diff
+for file in `find -name '*.qsos' -type f|grep -v template`;do
+  $SHOWTEMPLATE --global -f $file > `dirname $file`/global.tmp
 
   #diff -E -b global.xml `dirname $file`/global.tmp > /tmp/diff.`basename 
$file`.$$ 
-  diff -E -b global.xml `dirname $file`/global.tmp > /tmp/diff.`basename 
$file`.$$ 
+  diff -E -u -b global.xml `dirname $file`/global.tmp > /tmp/diff.`basename 
$file`.$$.diff 
   if [ "$?" -ne "0" ];then
     echo
-    echo "* Problem with $file"
-    echo $file global section differe from the global.xml section#: 
/tmp/diff.`basename $file`.$$
-    echo "####### diff ######"
-    cat /tmp/diff.`basename $file`.$$
+    echo "# Problem with $file"
+    echo \#file global section differe from the global.xml section#: 
/tmp/diff.`basename $file`.$$.diff
+#    cat /tmp/diff.`basename $file`.$$
   fi
   rm `dirname $file`/global.tmp
-  rm /tmp/diff.`basename $file`.$$
 done




reply via email to

[Prev in Thread] Current Thread [Next in Thread]