Changeset 16043 for lang/gauche
- Timestamp:
- 07/20/08 00:28:59 (4 months ago)
- Location:
- lang/gauche/oldtype/trunk
- Files:
-
- 4 modified
-
Kahua/oldtype/oldtype/version.kahua (modified) (1 diff)
-
bin/batch.sh (modified) (3 diffs)
-
bin/convert.sh (modified) (2 diffs)
-
bin/update.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/version.kahua
r15746 r16043 7 7 8 8 ;;--------------------------------------------------------- 9 (define *oldtype-version* "0.3. 1")9 (define *oldtype-version* "0.3.2") -
lang/gauche/oldtype/trunk/bin/batch.sh
r16032 r16043 29 29 30 30 function task () { 31 force=$1 31 32 echo [[info]] task start 32 ${OT_HOME}/bin/update.sh &&33 ${OT_HOME}/bin/update.sh ${force} && 33 34 ${OT_HOME}/bin/ot_AllPages && 34 35 ${OT_HOME}/bin/ot_RecentChanges && … … 36 37 ${OT_HOME}/bin/add.sh && 37 38 ${OT_HOME}/bin/commit.sh && 38 ${OT_HOME}/bin/update.sh &&39 ${OT_HOME}/bin/update.sh ${force} && 39 40 ${OT_HOME}/bin/convert.sh 40 41 #run-parts ${OT_HOME}/hook … … 44 45 } 45 46 47 force=1 46 48 while : 47 49 do 48 task 50 task ${force} 51 force=0 49 52 done 50 51 -
lang/gauche/oldtype/trunk/bin/convert.sh
r15936 r16043 15 15 if [ "$?" = "0" ] ; then 16 16 /bin/mv -f ../_out/${base}.sexp.tmp ../_out/${base}.sexp 17 /bin/cp -f ${src} ../_out/${base}.ot 17 18 else 18 19 exit $? … … 46 47 function convert_p() { 47 48 base=$1 48 # echo "file is ${base}.ot" 49 echo ${base} | grep "!" > /dev/null 50 generated=$? 51 if [ "0" = "$generated" ] ; then 52 diffs=`_svn t diff ${base}.ot | wc -l | awk '{ print $1; }'` 53 # echo diffs : ${diffs} 54 [ "0" != "${diffs}" -o ! -f ../_out/${base}.sexp ] 55 status=$? 56 57 ## TODO: fix me ( Must implement !xxxxx.ot contents converttion check ) 49 status=1 50 if [ ! -f "../_out/${base}.ot" ] ; then 51 # doesn't exist yet 58 52 status=0 59 60 # echo status : ${status} 61 else62 [ "${base}.ot" -nt ../_out/${base}.sexp ]63 status=$?64 # echo status : ${status} 53 else 54 diff "${base}.ot" "../_out/${base}.ot" > /dev/null 55 if [ "$?" != "0" ] ; then 56 # difference exist 57 status=0 58 fi 65 59 fi 66 60 return $status -
lang/gauche/oldtype/trunk/bin/update.sh
r16032 r16043 30 30 popd 31 31 32 echo "[[info]] revision[$prev]=>[$curr]" 33 [ "$prev" != "$curr" ] 34 exit $? 32 if [ "$1" = "1" ] ; then 33 echo "[[info]] force update" 34 # force option 35 status=0 36 else 37 echo "[[info]] revision[$prev]=>[$curr]" 38 [ "$prev" != "$curr" ] 39 status=$? 40 fi 41 exit $status
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)