Changeset 1097 for trunk


Ignore:
Timestamp:
2012-08-01T06:26:43+02:00 (3 years ago)
Author:
moo
Message:

devel: fix $@ processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/devel/run

    r1096 r1097  
    55
    66. devel/run.cfg
    7 if [[ ! -z $1 ]]; then
     7if [[ $# -gt 0 ]]; then
    88    type=$1
    9 fi
     9    shift
     10    if [[ $# -gt 0 ]]; then
     11        args=("$@")
     12    fi
     13fi
     14
     15if [[ -z ${args[0]} ]]; then
     16    args=(devel.php)
     17fi
     18
    1019
    1120case "$type" in
    1221prep*)
    13     shift
    14     exec $MAKE -f devel/prepare.mak "$@"
     22    exec $MAKE -f devel/prepare.mak "${args[@]}"
    1523    ;;
    1624tags)
    1725    rm -f tags
    18     shift
    19     exec $MAKE -f devel/prepare.mak tags "$@"
     26    exec $MAKE -f devel/prepare.mak tags "${args[@]}"
    2027    ;;
    2128dep*)
     
    9198xcachesrcdir=../$xcachebasename
    9299
    93 if [[ $# -gt 0 ]]; then
    94     type=$1
    95     shift
    96     if [[ $# -gt 0 ]]; then
    97         args=("$@")
    98     fi
    99 fi
    100 
    101 if [[ -z ${args[0]} ]]; then
    102     args=(devel.php)
    103 fi
    104 
    105100case "$type" in
    106101phpize)
Note: See TracChangeset for help on using the changeset viewer.