Changeset 16043 for lang/gauche

Show
Ignore:
Timestamp:
07/20/08 00:28:59 (4 months ago)
Author:
kiyoka
Message:

Supported updating modified contents only.

Location:
lang/gauche/oldtype/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • lang/gauche/oldtype/trunk/Kahua/oldtype/oldtype/version.kahua

    r15746 r16043  
    77 
    88;;--------------------------------------------------------- 
    9 (define *oldtype-version* "0.3.1") 
     9(define *oldtype-version* "0.3.2") 
  • lang/gauche/oldtype/trunk/bin/batch.sh

    r16032 r16043  
    2929 
    3030function task () { 
     31  force=$1 
    3132  echo [[info]] task start 
    32   ${OT_HOME}/bin/update.sh && 
     33  ${OT_HOME}/bin/update.sh ${force} && 
    3334  ${OT_HOME}/bin/ot_AllPages && 
    3435  ${OT_HOME}/bin/ot_RecentChanges && 
     
    3637  ${OT_HOME}/bin/add.sh && 
    3738  ${OT_HOME}/bin/commit.sh && 
    38   ${OT_HOME}/bin/update.sh && 
     39  ${OT_HOME}/bin/update.sh ${force} && 
    3940  ${OT_HOME}/bin/convert.sh 
    4041  #run-parts ${OT_HOME}/hook 
     
    4445} 
    4546 
     47force=1 
    4648while : 
    4749do 
    48   task 
     50  task ${force} 
     51  force=0 
    4952done 
    50  
    51  
  • lang/gauche/oldtype/trunk/bin/convert.sh

    r15936 r16043  
    1515    if [ "$?" = "0" ] ; then 
    1616        /bin/mv -f ../_out/${base}.sexp.tmp ../_out/${base}.sexp 
     17        /bin/cp -f ${src} ../_out/${base}.ot 
    1718    else 
    1819        exit $? 
     
    4647function convert_p() { 
    4748  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 
    5852    status=0 
    59  
    60 #    echo status : ${status} 
    61   else  
    62     [ "${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      
    6559  fi 
    6660  return $status 
  • lang/gauche/oldtype/trunk/bin/update.sh

    r16032 r16043  
    3030popd 
    3131 
    32 echo "[[info]] revision[$prev]=>[$curr]" 
    33 [ "$prev" != "$curr" ] 
    34 exit $? 
     32if [ "$1" = "1" ] ; then 
     33  echo "[[info]] force update" 
     34  # force option 
     35  status=0 
     36else 
     37  echo "[[info]] revision[$prev]=>[$curr]" 
     38  [ "$prev" != "$curr" ] 
     39  status=$? 
     40fi 
     41exit $status