- Timestamp:
- 11/11/2009 15:59:06 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
confman.in (modified) (2 diffs)
-
confmancommon.sh.in (modified) (3 diffs)
-
confmanlib.sh.in (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confman.in
r490 r491 157 157 done 158 158 rm -f "$orig_log" 159 ${sed_ cmd} -i ''-e "/${ignoreline}/,\$d" "$logfile" 2>/dev/null159 ${sed_i_cmd} -e "/${ignoreline}/,\$d" "$logfile" 2>/dev/null 160 160 echo "$logfile" 161 161 return 0 … … 529 529 realpath=${dir#${WORK_PATH}/${module}} 530 530 531 local directories=`echo "$realpath" | sed's:/: :g'`531 local directories=`echo "$realpath" | ${sed_cmd} -e 's:/: :g'` 532 532 local fulldir="" 533 533 -
trunk/confmancommon.sh.in
r462 r491 76 76 mktemp_dir="mktemp -d -t confman" 77 77 sed_cmd="sed -E" 78 sed_i_cmd="${sed_cmd} -i \"\"" 78 79 stat_cmd="stat -f" 79 80 stat_opts="mode=%Mp%Lp owner=%Su group=%Sg" … … 85 86 mktemp_dir="mktemp -t -d confman.XXXXXX" 86 87 sed_cmd="sed -r" 88 sed_i_cmd="${sed_cmd} -i" 87 89 stat_cmd="stat -c" 88 90 stat_opts="mode=%a owner=%U group=%G" … … 94 96 mktemp_dir="mktemp -d -t confman" 95 97 sed_cmd="sed -E" 98 sed_i_cmd="${sed_cmd} -i \"\"" 96 99 stat_cmd="stat -f" 97 100 stat_opts="mode=%Mp%Lp owner=%Su group=%Sg" -
trunk/confmanlib.sh.in
r477 r491 422 422 for directory in `find -L $moduledir -mindepth 1 -type d | grep -v "\.svn"`; 423 423 do 424 local livedir=`echo $directory | sed"s:$moduledir::"`424 local livedir=`echo $directory | ${sed_cmd} -e "s:$moduledir::"` 425 425 livedir="${LIVE_ROOT}${livedir}" 426 426 local owner=`conf_get_prop ${directory} owner` … … 433 433 done 434 434 for file in `find -L $moduledir -type f | grep -v "\.svn"` ; do 435 local livefile=`echo "$file" | sed"s:$moduledir::"`435 local livefile=`echo "$file" | ${sed_cmd} -e "s:$moduledir::"` 436 436 local owner=`conf_get_prop ${file} owner` 437 437 local group=`conf_get_prop ${file} group` … … 798 798 local mode=$4 799 799 local workdir="" 800 local directories=`echo "$directory" | sed's:/: :g'`800 local directories=`echo "$directory" | ${sed_cmd} -e 's:/: :g'` 801 801 local dir 802 802 … … 859 859 860 860 find ${WORK_PATH}/${newmod} -type f -not -path '*/.svn/*' -exec \ 861 ${sed_ cmd} -i""\861 ${sed_i_cmd} \ 862 862 "s/(Managed under )${oldmod}( module\.)$/\1${newmod}\2/" {} \; \ 863 863 || return 1
Note: See TracChangeset
for help on using the changeset viewer.
