Changeset 982 for trunk/devel/run


Ignore:
Timestamp:
2012-07-17T10:35:45+02:00 (3 years ago)
Author:
moo
Message:

move files to subdirs

Location:
trunk/devel
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/devel/run

    r980 r982  
    77if echo $basename | grep -- - >/dev/null; then :; else
    88    dirs=${dirs:-php5-debug}
     9
    910    for dir in $dirs; do
    1011        cd ../${basename}-${dir} || exit
     12
     13        rm -f php-src
     14        find -L . -type l | xargs rm -f
     15        lndir ../$basename >/dev/null
     16        find . -iname .\*.swp | xargs rm -f
     17        ln -sf ~/src/php/$dir php-src
     18        for i in ~/src/php/$dir/sapi/cgi/php{,-cgi}; do
     19            [[ -r $i ]] && ln -sf "$i" php-cgi
     20        done
     21        ln -sf ~/src/php/$dir/sapi/cli/php php-cli
     22
    1123        pwd
    1224        $0 "$@"
     
    1426    exit
    1527fi
     28phpbasename=${basename#*-}
     29xcachebasename=${basename%%-*}
    1630
    1731if [[ ! -z $1 ]]; then
     
    2640fi
    2741
    28 if [[ $type = make ]]; then
     42case $type in
     43prepare)
     44    exec ./devel/prepare.devel
     45    ;;
     46tags)
     47    exec ./devel/prepare.devel tags
     48    ;;
     49rebuild)
     50    PHPDIRS=${PHPDIRS:-$HOME/test}
     51    if [[ ! -x $PHPDIRS/$phpbasename/bin/phpize ]]; then
     52        echo $PHPDIRS/$phpbasename/bin/phpize not found
     53        exit
     54    fi
     55    export PATH=$PHPDIRS/$phpbasename/bin:$PATH
     56    phpize --clean \
     57    && phpize \
     58    && CFLAGS="-Wall -Wno-unused -W -Wshadow -std=gnu99" ./configure --enable-xcache-disassembler --enable-xcache-test --enable-xcache-constant \
     59    && make
     60    exit
     61    ;;
     62make)
    2963    MAKEARGS=("$@")
    30 fi
     64    ;;
     65esac
    3166
    32 LANG=C /usr/bin/make $MAKEOPTS "${MAKEARGS[@]}" 2>&1 | hi error warn FAIL
     67LANG=C /usr/bin/make $MAKEOPTS "${MAKEARGS[@]}" 2>&1 | hi error implicit warn FAIL
    3368ret=${PIPESTATUS[0]}
    3469if [[ $ret -ne 0 || $type = make ]]; then
     
    75110    ;;
    76111dc)
    77     exec ./php-cli -c php.ini ./phpdc.phpr "${args[@]}" | tee decompiled.php
     112    exec ./php-cli -c php.ini ./bin/phpdc.phpr "${args[@]}" | tee decompiled.php
    78113    ;;
    79114dop)
    80     exec ./php-cgi -q -c php.ini ./phpdop.phpr "${args[@]}"
     115    exec ./php-cli -c php.ini ./bin/phpdop.phpr "${args[@]}"
    81116    ;;
    82117retest)
Note: See TracChangeset for help on using the changeset viewer.