Changeset 492
- Timestamp:
- 11/11/2009 16:37:02 (2 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
confman.in (modified) (1 diff)
-
confmancommon.sh.in (modified) (3 diffs)
-
confmanlib.sh.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/confman.in
r491 r492 157 157 done 158 158 rm -f "$orig_log" 159 ${sed_i_cmd}-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 -
trunk/confmancommon.sh.in
r491 r492 76 76 mktemp_dir="mktemp -d -t confman" 77 77 sed_cmd="sed -E" 78 sed_i_cmd="${sed_cmd} -i \"\"" 78 function sed_i_cmd { 79 ${sed_cmd} -i '' "$@" 80 } 79 81 stat_cmd="stat -f" 80 82 stat_opts="mode=%Mp%Lp owner=%Su group=%Sg" … … 86 88 mktemp_dir="mktemp -t -d confman.XXXXXX" 87 89 sed_cmd="sed -r" 88 sed_i_cmd="${sed_cmd} -i" 90 function sed_i_cmd { 91 ${sed_cmd} -i "$@" 92 } 89 93 stat_cmd="stat -c" 90 94 stat_opts="mode=%a owner=%U group=%G" … … 96 100 mktemp_dir="mktemp -d -t confman" 97 101 sed_cmd="sed -E" 98 sed_i_cmd="${sed_cmd} -i \"\"" 102 function sed_i_cmd { 103 ${sed_cmd} -i '' "$@" 104 } 99 105 stat_cmd="stat -f" 100 106 stat_opts="mode=%Mp%Lp owner=%Su group=%Sg" -
trunk/confmanlib.sh.in
r491 r492 858 858 done 859 859 860 find ${WORK_PATH}/${newmod} -type f -not -path '*/.svn/*' -exec \ 861 ${sed_i_cmd} \ 862 "s/(Managed under )${oldmod}( module\.)$/\1${newmod}\2/" {} \; \ 863 || return 1 860 for file in $(find ${WORK_PATH}/${newmod} -type f -not -path '*/.svn/*') 861 do 862 sed_i_cmd \ 863 "s/(Managed under )${oldmod}( module\.)$/\1${newmod}\2/" "$file" \ 864 || return 1 865 done 866 867 for file in $(find $(conf_recipe_dir) -maxdepth 1 -type f); do 868 sed_i_cmd "s/^([ \t]*)${oldmod}([ \t]*)$/\1${newmod}\2/" "$file" || 869 return 1 870 done 864 871 865 872 @SVN@ commit -m "Renaming ${oldmod} to ${newmod}" \ 866 873 ${WORK_PATH}/${oldmod} ${WORK_PATH}/${REPO_CHECKPTS}/${oldmod} \ 867 874 ${WORK_PATH}/${newmod} ${WORK_PATH}/${REPO_CHECKPTS}/${newmod} \ 868 || return 1875 $(conf_recipe_dir) || return 1 869 876 870 877 return 0
Note: See TracChangeset
for help on using the changeset viewer.
