Changeset 998 in svn for trunk/devel/run


Ignore:
Timestamp:
2012-07-19T05:57:56+02:00 (3 years ago)
Author:
Xuefer
Message:

refactor: fix build, easier devel

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        11acinclude.m4
        22aclocal.m4
         3autom4te.cache
        34build
        45config.cache
         
        1516conftest.c
        1617.deps
         18devel.ini
         19devel.php
         20.gdb_history
        1721include
        1822includes.i
         
        2731mkinstalldirs
        2832modules
        29 processor.h
        30 processor.out
        31 processor_real.c
         33prepare.devel.inc
        3234run-tests.php
        3335structinfo.m4
        34 autom4te.cache
         36.svnignore
        3537tags
        36 prepare.devel.inc
         38xc_processor.c
         39xc_processor.h
         40xc_processor.out.c
  • trunk/devel

    • Property svn:ignore set to
      run.cfg
      prepare.cfg
  • trunk/devel/run

    r995 r998  
    11#!/bin/bash
    22# this script is for developers only
     3set -e
    34
    4 case "$1" in
     5. devel/run.cfg
     6if [[ ! -z $1 ]]; then
     7    type=$1
     8fi
     9
     10case "$type" in
    511prep*)
    612    exec ./devel/prepare
     13    ;;
     14xtest)
     15    exec /usr/bin/make -f devel/test.mak
    716    ;;
    817tags)
     
    1120esac
    1221
    13 . run.cfg
    14 
    1522basename=$(basename $(pwd))
    1623if echo $basename | grep -- - >/dev/null; then :; else
     24    svn propget svn:ignore . > .svnignore
     25
    1726    dirs=${dirs:-php5-debug}
    18 
    1927    for dir in $dirs; do
     28        mkdir -p ../${basename}-${dir}
    2029        cd ../${basename}-${dir} || exit
     30        lndir ../${basename} > /dev/null
    2131
    2232        pwd
     
    3040xcachesrcdir=../$xcachebasename
    3141
    32 rm -f php-src
    33 find -L . -type l | xargs rm -f
    34 lndir "$xcachesrcdir" >/dev/null
    35 find . -iname .\*.swp | xargs rm -f
    36 ln -sf ~/src/php/$phpbasename php-src
    37 for i in ~/src/php/$phpbasename/sapi/cgi/php{,-cgi}; do
    38     [[ -r $i ]] && ln -sf "$i" php-cgi
    39 done
    40 ln -sf ~/src/php/$phpbasename/sapi/cli/php php-cli
    41 
    4242if [[ ! -z $1 ]]; then
    4343    type=$1
     
    4747        args=("$@")
    4848    elif [[ -z $args ]]; then
    49         args=(test.php)
     49        args=(devel.php)
    5050    fi
    5151fi
     52
     53case "$type" in
     54reb*)
     55    if [[ -r Makefile ]]; then
     56        make xcachesvnclean
     57    fi
     58    ;;
     59esac
     60
     61rm -f php-src
     62find -L . -type l | xargs rm -f
     63lndir "$xcachesrcdir" >/dev/null
     64find . -iname .\*.swp | xargs rm -f
     65ln -sf ~/src/php/$phpbasename php-src
     66for i in ~/src/php/$phpbasename/sapi/cgi/php{,-cgi}; do
     67    if [[ -r $i ]]; then
     68        ln -sf "$i" php-cgi
     69    fi
     70done
     71ln -sf ~/src/php/$phpbasename/sapi/cli/php php-cli
    5272
    5373case "$type" in
     
    5979    fi
    6080    export PATH=$PHPDIRS/$phpbasename/bin:$PATH
    61     [[ -r Makefile ]] && make xcachesvnclean
    6281    phpize --clean \
    6382    && phpize \
     
    87106    ;;
    88107*)
    89     cmd=(./php-cgi -q -c php.ini)
     108    cmd=(./php-cgi -q -c devel.ini)
    90109    "${cmd[@]}" -v
    91110    ;;
     
    116135    ;;
    117136dc)
    118     exec ./php-cli -c php.ini ./bin/phpdc.phpr "${args[@]}" | tee decompiled.php
     137    exec ./php-cli -c devel.ini ./bin/phpdc.phpr "${args[@]}" | tee decompiled.php
    119138    ;;
    120139dop)
    121     exec ./php-cli -c php.ini ./bin/phpdop.phpr "${args[@]}"
     140    exec ./php-cli -c devel.ini ./bin/phpdop.phpr "${args[@]}"
    122141    ;;
    123142retest)
Note: See TracChangeset for help on using the changeset viewer.