Ignore:
Timestamp:
11/11/2009 16:40:08 (3 years ago)
Author:
ccowart
Message:

Merging fixes to sed -i as well as support for rename to update recipe
files.

Resolves #96, #98

Location:
branches/confman-1.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

  • branches/confman-1.9/confmancommon.sh.in

    r481 r494  
    7676    mktemp_dir="mktemp -d -t confman" 
    7777    sed_cmd="sed -E" 
     78    function sed_i_cmd { 
     79        ${sed_cmd} -i '' "$@" 
     80    } 
    7881    stat_cmd="stat -f" 
    7982    stat_opts="mode=%Mp%Lp owner=%Su group=%Sg" 
     
    8588    mktemp_dir="mktemp -t -d confman.XXXXXX" 
    8689    sed_cmd="sed -r" 
     90    function sed_i_cmd { 
     91        ${sed_cmd} -i "$@" 
     92    } 
    8793    stat_cmd="stat -c" 
    8894    stat_opts="mode=%a owner=%U group=%G" 
     
    94100    mktemp_dir="mktemp -d -t confman" 
    95101    sed_cmd="sed -E" 
     102    function sed_i_cmd { 
     103        ${sed_cmd} -i '' "$@" 
     104    } 
    96105    stat_cmd="stat -f" 
    97106    stat_opts="mode=%Mp%Lp owner=%Su group=%Sg" 
Note: See TracChangeset for help on using the changeset viewer.