Changeset 141 for tags/confman-1.5


Ignore:
Timestamp:
12/04/2006 21:53:08 (5 years ago)
Author:
ccowart
Message:

Making some minor errors vanish.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/confman-1.5/confmanlib.sh

    r123 r141  
    120120        chmod o+rx ${WORK_PATH} 
    121121 
    122         for directory in `find $moduledir -type d | grep -v "\.svn"` ; do 
     122        for directory in `find $moduledir -type d -mindepth 1| grep -v "\.svn"`; do 
    123123                local livedir=`echo $directory | sed "s:$moduledir::"` 
    124124                livedir="${LIVE_ROOT}${livedir}" 
     
    166166                return 0 
    167167        elif [ ! -f "$file" ] && [ ! -d "$file" ] ; then 
    168                 conf_install $module $* 
     168                conf_install $module "$@" 
    169169                return 
    170170        fi 
     
    190190        chmod o-rx ${WORK_PATH} 
    191191 
     192    if [ -d "$file" ] ; then 
     193        conf_install $module "$file"/* 
     194    fi 
    192195        if [ ! -z $1 ] ; then 
    193                 conf_install $module $* 
     196                conf_install $module "$@" 
    194197        fi 
    195198} 
     
    473476} 
    474477 
     478function conf_syncheck { 
     479    local cmd 
     480    local toReturn=true 
     481    for file in "$@" ; do 
     482        cmd=$(svn propget "confman:syncheck" "$file") 
     483        if [ -z "$cmd" ] ; then 
     484            continue 
     485        fi 
     486        if ! $cmd "$file" ; then 
     487            echo "Syntax verification failed for $file" >&2 
     488            toReturn=false 
     489        fi 
     490    done 
     491    $toReturn 
     492} 
     493 
    475494function conf_markclean { 
    476495    echo clean > $REPO_SYNC_STATE 
Note: See TracChangeset for help on using the changeset viewer.