summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-07-26 09:19:22 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-07-26 09:19:22 +0000
commit5a379b01836579c56dd30265ad41f4af43071060 (patch)
tree5fd141a7aaa0ae168f83cc3cae37035caa31f9e5 /contrib
parentNCURSES_RPMREL = 0.20070726.1 (diff)
downloadrtems-5a379b01836579c56dd30265ad41f4af43071060.tar.bz2
Don't use sed -i.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/cygwin/i686/libncurses-devel.add5
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/crossrpms/cygwin/i686/libncurses-devel.add b/contrib/crossrpms/cygwin/i686/libncurses-devel.add
index 061b5b75f1..65f59ee225 100644
--- a/contrib/crossrpms/cygwin/i686/libncurses-devel.add
+++ b/contrib/crossrpms/cygwin/i686/libncurses-devel.add
@@ -28,7 +28,10 @@ Cygwin libncurses-devel libraries.
mkdir -p @tool_target@/sys-root
( cd @tool_target@/sys-root ; %{__tar} xvjf %{SOURCE0})
- sed -i 's,^prefix=\(.*\)$,prefix=$RPM_BUILD_ROOT%{_prefix}/@tool_target@/sys-root\1,' etc/postinstall/libncurses-devel.sh
+ sed -e 's,^prefix=\(.*\)$,prefix=$RPM_BUILD_ROOT%{_prefix}/@tool_target@/sys-root\1,' \
+ > etc/postinstall/libncurses-devel.sh \
+ > etc/postinstall/libncurses-devel.sh~
+ mv etc/postinstall/libncurses-devel.sh~ etc/postinstall/libncurses-devel.sh
%install
rm -rf $RPM_BUILD_ROOT