correct the use of 'sed -i'

This commit is contained in:
Niko Matsakis 2011-12-05 15:12:36 -08:00
parent 1720bc2e81
commit 7bf41392b6

View File

@ -17,10 +17,11 @@ do
-Isrc/rt/arch/$ARCH -fno-stack-protector \
-o src/rt/intrinsics/intrinsics.$ARCH.ll.in \
src/rt/intrinsics/intrinsics.cpp
sed -i \
sed -i .orig \
-e 's/^target datalayout =/; target datalayout =/' \
src/rt/intrinsics/intrinsics.$ARCH.ll.in
sed -i \
sed -i .orig \
-e 's/^target triple = "[^"]*"/target triple = "@CFG_TARGET_TRIPLE@"/' \
src/rt/intrinsics/intrinsics.$ARCH.ll.in
done
rm src/rt/intrinsics/intrinsics.$ARCH.ll.in.orig
done