Changeset 26912


Ignore:
Timestamp:
03/03/14 23:58:14 (8 years ago)
Author:
obi
Message:

move po error file

Location:
titan
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/tools/createpo.sh

    r26910 r26912  
    4747#cat /var/www/atemio/web/mediathek/*/*.category.list  | cut -d"#" -f1 | sort -u | sed -e 's/^/tmpstr = _("/' | grep -v link= | grep -v title= | tr '\0' '#' | tr '\n' '#' | sed 's!#!");\n!g' >>"$HOME"/flashimg/source.titan/titan/tools/tmp/tithek_submenu.h
    4848
    49 file --mime-encoding "$HOME"/flashimg/source.titan/po/*/*/*.po >> "$HOME"/flashimg/source.titan/titan/tools/error/coding.log 2>&1
     49file --mime-encoding "$HOME"/flashimg/source.titan/po/*/*/*.po >> "$HOME"/flashimg/source.titan/error/coding.log 2>&1
    5050
    5151error=0
     
    7474
    7575                cmd="xgettext --omit-header -j -k_ *.* -o $ROUND_UTF"
    76                 echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/source.titan/titan/tools/error/error.log
    77                 $cmd >> "$HOME"/flashimg/source.titan/titan/tools/error/error.log 2>&1
     76                echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/source.titan/error/po.log
     77                $cmd >> "$HOME"/flashimg/source.titan/error/po.log 2>&1
    7878                if [ ! -e "$ROUND_UTF" ] || [ `cat "$ROUND_UTF" | wc -l` -eq 0 ]; then error="3"; break;fi
    79                 log=`cat "$HOME"/flashimg/source.titan/titan/tools/error/error.log`
     79                log=`cat "$HOME"/flashimg/source.titan/error/po.log`
    8080                if [ `echo $log | grep "fatal error" | wc -l` -gt 0 ]; then error="4"; break;fi
    8181
    8282                cmd="xgettext --omit-header -k_ *.* -o $ROUND_NEW"
    83                 echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/source.titan/titan/tools/error/error.log
    84                 $cmd >> "$HOME"/flashimg/source.titan/titan/tools/error/error.log 2>&1
     83                echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/source.titan/error/po.log
     84                $cmd >> "$HOME"/flashimg/source.titan/error/po.log 2>&1
    8585                if [ ! -e "$ROUND_NEW" ] || [ `cat "$ROUND_NEW" | wc -l` -eq 0 ]; then error="5"; break;fi
    86                 log=`cat "$HOME"/flashimg/source.titan/titan/tools/error/error.log`
     86                log=`cat "$HOME"/flashimg/source.titan/error/po.log`
    8787                if [ `echo $log | grep "fatal error" | wc -l` -gt 0 ]; then error="6";break;fi
    8888
     
    121121
    122122                cmd="msgfmt -v $OUTFILE_PO -o $OUTFILE_MO"
    123                 echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/source.titan/titan/tools/error/error.log
    124                 $cmd >> "$HOME"/flashimg/source.titan/titan/tools/error/error.log 2>&1
     123                echo "[createpo.sh] $cmd" >> "$HOME"/flashimg/source.titan/error/po.log
     124                $cmd >> "$HOME"/flashimg/source.titan/error/po.log 2>&1
    125125                if [ ! -e "$OUTFILE_MO" ] || [ `cat "$OUTFILE_MO" | wc -l` -eq 0 ]; then error="12"; break;fi
    126                 log=`cat "$HOME"/flashimg/source.titan/titan/tools/error/error.log`
     126                log=`cat "$HOME"/flashimg/source.titan/error/po.log`
    127127                if [ `echo $log | grep "fatal error" | wc -l` -gt 0 ]; then error="13"; break;fi
    128128
     
    147147fi
    148148
    149 file --mime-encoding "$HOME"/flashimg/source.titan/po/*/*/*.po >> "$HOME"/flashimg/source.titan/titan/tools/error/coding.log 2>&1
     149file --mime-encoding "$HOME"/flashimg/source.titan/po/*/*/*.po >> "$HOME"/flashimg/source.titan/error/coding.log 2>&1
    150150
    151151echo "[createpo.sh] ###################### error log start ##########################"
    152 cat "$HOME"/flashimg/source.titan/titan/tools/error/error.log
     152cat "$HOME"/flashimg/source.titan/error/po.log
    153153echo "[createpo.sh] ####################### error log end ###########################"
    154154
     
    164164        echo "[createpo.sh] svn commit -m [titan] ERROR autoupdate po files"
    165165       
    166         cp -a "$HOME"/flashimg/source.titan/titan/tools/error/error.log "$HOME"/flashimg/source.titan/titan/tools/error/create_po_error_code
     166        cp -a "$HOME"/flashimg/source.titan/error/po.log "$HOME"/flashimg/source.titan/error/create_po_error_code
    167167       
    168         LINE=`cat "$HOME"/flashimg/source.titan/titan/tools/error/error.log | grep -n "fatal error" | cut -d: -f1`
     168        LINE=`cat "$HOME"/flashimg/source.titan/error/po.log | grep -n "fatal error" | cut -d: -f1`
    169169        if [ ! -z "$LINE" ];then
    170170                LINE=`expr $LINE - 1`
    171                 FILE=`cat "$HOME"/flashimg/source.titan/titan/tools/error/error.log | sed -ne ""$LINE"p" | cut -d: -f1`
    172                 LINE=`cat "$HOME"/flashimg/source.titan/titan/tools/error/error.log | sed -ne ""$LINE"p" | cut -d: -f2`
     171                FILE=`cat "$HOME"/flashimg/source.titan/error/po.log | sed -ne ""$LINE"p" | cut -d: -f1`
     172                LINE=`cat "$HOME"/flashimg/source.titan/error/po.log | sed -ne ""$LINE"p" | cut -d: -f2`
    173173                LINE1=`expr $LINE - 1`
    174174                LINE2=`expr $LINE + 1`
    175                 echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/source.titan/titan/tools/error/create_po_error_code
    176                 echo "[createpo.sh] ###### error should be in the middle #######" >> "$HOME"/flashimg/source.titan/titan/tools/error/create_po_error_code
    177                 echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/source.titan/titan/tools/error/create_po_error_code
    178                 cat -n "$FILE" | sed -ne ""$LINE1","$LINE2"p" >> "$HOME"/flashimg/source.titan/titan/tools/error/create_po_error_code
    179                 echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/source.titan/titan/tools/error/create_po_error_code
     175                echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
     176                echo "[createpo.sh] ###### error should be in the middle #######" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
     177                echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
     178                cat -n "$FILE" | sed -ne ""$LINE1","$LINE2"p" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
     179                echo "[createpo.sh] ############################################" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
    180180        fi
    181181
    182         echo "[createpo.sh] ################## coding #################" >> "$HOME"/flashimg/source.titan/titan/tools/error/create_po_error_code
    183         cat "$HOME"/flashimg/source.titan/titan/tools/error/coding.log >> "$HOME"/flashimg/source.titan/titan/tools/error/create_po_error_code
     182        echo "[createpo.sh] ################## coding #################" >> "$HOME"/flashimg/source.titan/error/create_po_error_code
     183        cat "$HOME"/flashimg/source.titan/error/coding.log >> "$HOME"/flashimg/source.titan/error/create_po_error_code
    184184
    185         cd "$HOME"/flashimg/source.titan/titan/tools/error
     185        cd "$HOME"/flashimg/source.titan/error
    186186        svn commit -m "[titan] ERROR autoupdate po files"
    187         svn commit "$HOME"/flashimg/source.titan/titan/tools/error/create_po_error_code
     187        svn commit "$HOME"/flashimg/source.titan/error/create_po_error_code
    188188else
    189189        echo "[createpo.sh] skip: svn commit"
Note: See TracChangeset for help on using the changeset viewer.