Changeset 1120 in svn for trunk/devel/run


Ignore:
Timestamp:
2012-08-04T04:32:05+02:00 (3 years ago)
Author:
Xuefer
Message:

devel: update run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/devel/run

    r1119 r1120  
    1717. devel/run.cfg
    1818if [[ $# -gt 0 ]]; then
    19     type=$1
     19    action=$1
    2020    shift
    2121    if [[ $# -gt 0 ]]; then
    2222        args=("$@")
    23     elif [[ $type = "make" ]]; then
     23    elif [[ $action = "make" ]]; then
    2424        args=()
    2525    fi
    2626fi
    2727
    28 case "$type" in
     28case "$action" in
    2929prep*)
    3030    exec $MAKE -f devel/prepare.mak "${args[@]}"
    3131    ;;
    3232po2php)
    33     ./run mergepo
     33    ./run mergepo "${args[0]}"
    3434    find htdocs -iname '*.po' | while read -r i; do
    3535        phpfile=${i/.po/.php}
     
    4040    ;;
    4141mergepo)
    42     ./run prep
     42    ./run prep "${args[0]}"
    4343    find htdocs -iname '*.po' | while read -r i; do
    4444        if [[ -f $i-merged ]]; then
     
    127127
    128128        pwd
    129         $0 "$type" "${args[@]}"
     129        $0 "$action" "${args[@]}"
    130130    done
    131131    exit
     
    137137pidfile=../$xcachebasename/devel.pid
    138138
    139 case "$type" in
     139case "$action" in
    140140phpize)
    141141    if [[ -r Makefile ]]; then
     
    146146
    147147rm -f php-src
    148 find -L . -type l | xargs rm -fv
     148find -L . -action l | xargs rm -fv
    149149lndir "$xcachesrcdir" >/dev/null || true
    150150find . -iname .\*.swp | xargs rm -f
     
    158158ln -sf ~/src/php/$phpbasename/sapi/fpm/php-fpm php-fpm
    159159
    160 case "$type" in
     160case "$action" in
    161161phpize)
    162162    PHPDIRS=${PHPDIRS:-$HOME/test}
     
    192192| hi error implicit warn FAIL
    193193ret=${PIPESTATUS[0]}
    194 if [[ $ret -ne 0 || $type = make ]]; then
     194if [[ $ret -ne 0 || $action = make ]]; then
    195195    exit $ret
    196196fi
     
    228228esac
    229229
    230 case "$type" in
     230case "$action" in
    231231ltr*)
    232232    export USE_ZEND_ALLOC=0
Note: See TracChangeset for help on using the changeset viewer.