Changeset 1553 in svn


Ignore:
Timestamp:
2014-11-08T19:07:05Z (4 years ago)
Author:
Xuefer
Message:

clean var scope

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/devel/run

    r1551 r1553  
    6969
    7070updatedeps() { # {{{1
    71     pwd=$(readlink -f "$(pwd)")
    72     builddir=$(readlink -f ../trunk-php5-debug-zts)
     71    local pwd=$(readlink -f "$(pwd)")
     72    local builddirname=${xcachesrcdir}-${phpbasename}
     73    local builddir=$(readlink -f $builddirname)
    7374    if [[ -z $builddir ]]; then
    74         hiecho required ../trunk-php5-debug-zts not found
     75        hiecho required $builddirname not found
    7576        return 1
    7677    fi
     78    local sourceFile
     79    local sourceFilename
    7780    find . -iname \*.c | LANG=C sort | while read -r sourceFile; do
    78         sourceFile=${sourceFile#./}
     81        sourceFilename=${sourceFile#./}
    7982        {
    80             case "$sourceFile" in
     83            case "$sourceFilename" in
    8184            includes.c)
    8285                echo '$(XCACHE_INCLUDES_I)'
    8386                ;;
    8487            esac
    85             echo ${sourceFile%.c}.lo '$(builddir)/'${sourceFile%.c}.lo:
    86             hiecho "Checking $sourceFile ..." >&2
     88            echo ${sourceFilename%.c}.lo '$(builddir)/'${sourceFilename%.c}.lo:
     89            hiecho "Checking $sourceFilename ..." >&2
    8790            for dependency in $(gcc -DHAVE_XCACHE_TEST -DHAVE_XCACHE_DPRINT -DXCACHE_DEBUG -MM $sourceFile -I$PHPSDIR/$phpbasename/include/php/{,main,Zend,TSRM} -I. -I${builddir} -MG | sed 's#.*:##g' | sed 's#\\##g'); do
    8891                dependency=$(readlink -f "$dependency")
     
    104107
    105108                /*) ;;
    106                 $sourceFile) ;;
     109                $sourceFilename) ;;
    107110
    108111                xc_processor.h|\$\(builddir\)/xc_processor.h)
Note: See TracChangeset for help on using the changeset viewer.