Commit 35a744a5 by Oliver Woodman

Use perl for in-place substitution.

parent 96734144
...@@ -31,7 +31,7 @@ while read file; do ...@@ -31,7 +31,7 @@ while read file; do
${ASM_CONVERTER} "${file}" > "${gnu_file}" ${ASM_CONVERTER} "${file}" > "${gnu_file}"
# The ASM conversion script replaces includes with *_gnu.S. So, replace # The ASM conversion script replaces includes with *_gnu.S. So, replace
# occurences of "*-gnu.S" with "*_gnu.s". # occurences of "*-gnu.S" with "*_gnu.s".
sed -i "s/-gnu\.S/_gnu\.s/g" "${gnu_file}" perl -pi -e "s/-gnu\.S/_gnu\.s/g" "${gnu_file}"
rm -f "${file}" rm -f "${file}"
fi fi
done < <(find . -iname '*.s') done < <(find . -iname '*.s')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment