Changeset 21768 for branches/gcc-kmk/tools
- Timestamp:
- Oct 31, 2011, 7:00:42 PM (14 years ago)
- File:
-
- 1 edited
-
branches/gcc-kmk/tools/bin/def_quote_names.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/tools/bin/def_quote_names.sh
r21752 r21768 26 26 AZ09_WITH_Q=$AZ_$AZ09_Q'*'$Q'+'$AZ09_Q'*' 27 27 28 REMINDER='(('$SP'+@[0-9]+('$SP'+NONAME)?)?('$SP'*;.*)?'$SP'*)' 29 28 30 sed -r ' 29 31 { 30 32 # foo = bar@0 => foo = "bar@0" 31 s/^('$SP'*)("?'$AZ_$AZ09_' +"?'$SP'*='$SP'*)(('$AZ09_WITH_Q')('$SP$SP')?)(('$SP'+@[0-9]+)?.*)$/\1\2"\4"\6/33 s/^('$SP'*)("?'$AZ_$AZ09_'*"?'$SP'*='$SP'*)(('$AZ09_WITH_Q')('$SP$SP')?)'$REMINDER'$/\1\2"\4"\6/ 32 34 # foo@0 = bar@0 => "foo" = "bar@0" 33 s/^('$SP'*)(('$AZ09_WITH_Q')('$SP$SP')?)('$SP'*='$SP'*)(('$AZ09_WITH_Q')('$SP$SP')?) (('$SP'+@[0-9]+)?.*)$/\1"\3"\5"\7"\9/35 s/^('$SP'*)(('$AZ09_WITH_Q')('$SP$SP')?)('$SP'*='$SP'*)(('$AZ09_WITH_Q')('$SP$SP')?)'$REMINDER'$/\1"\3"\5"\7"\9/ 34 36 # foo@0 = bar => "foo" = bar 35 37 # foo@0 => "foo" 36 s/^('$SP'*)(('$AZ09_WITH_Q')('$SP$SP')?)('$SP'*='$SP'*"?'$AZ_$AZ09_' +"?)?(('$SP'+@[0-9]+)?.*)?$/\1"\3"\5\6/38 s/^('$SP'*)(('$AZ09_WITH_Q')('$SP$SP')?)('$SP'*='$SP'*"?'$AZ_$AZ09_'*"?)?'$REMINDER'$/\1"\3"\5\6/ 37 39 } 38 40 ' < "$IN_DEF" > "$OUT_DEF"
Note:
See TracChangeset
for help on using the changeset viewer.
