Show
Ignore:
Timestamp:
06/05/08 00:15:59 (7 years ago)
Author:
kiyoka
Message:

Divided processes of convert_all.sh into update.sh convert.sh add.sh update.sh.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/gauche/oldtype/trunk/bin/update.sh

    r13233 r13237  
    2323 
    2424cd        ${OT_EDITHOME} 
    25 # update 
    26 _svn t update 
    2725 
    28 cd        ${OT_EDITHOME}/edit/ 
    29 mkdir -p  ${OT_EDITHOME}/_out 
    30 mkdir -p  ${OT_EDITHOME}/_tmp 
    31  
    32 # copy images 
    33 mkdir -p  ${OT_STATICHOME}/img 
    34 /bin/cp -f ${OT_EDITHOME}/img/* ${OT_STATICHOME}/img 
    35  
    36 /bin/ls -1 *.ot > ../_tmp/all.list 
    37 _svn t ls > ../_tmp/svn.list 
    38  
    39 filelist=`cat ../_tmp/all.list ../_tmp/svn.list | sort | uniq -d` 
    40 locallist=`cat ../_tmp/all.list ../_tmp/svn.list | sort | uniq -u` 
    41 _svn t log --xml "..@HEAD" > ../_tmp/tmp.log 
    42  
    43 for f in $locallist; 
    44 do 
    45   base=`basename ${f} .ot` 
    46   echo "[" ${base} "]" 
    47   _oldtype_to internal "${base}.ot" ../_out/${base}.sexp 
    48 done 
    49  
    50 for f in $filelist; 
    51 do 
    52   base=`basename ${f} .ot` 
    53   if [ "${base}.ot" -nt ../_out/${base}.sexp ] ; then 
    54       echo "[" ${base} "]" 
    55       _svn t ann "${f}@HEAD" > ../_tmp/tmp.ann 
    56       if [ "$?" != "0" ] ; then 
    57           msg="Warning: [ ${f} ] svn ann  command failed..." 
    58           echo ${msg} 
    59           logger "OldType: ${msg}" 
    60       fi 
    61       _oldtype_to internal "${base}.ot" ../_out/${base}.sexp     ../_tmp/tmp.log ../_tmp/tmp.ann 
    62   fi 
    63 done 
     26  _svn t update 
    6427 
    6528popd