[uClibc] toolchain CVS: toolchain/gcc-3.3.x/sources/sedcheck.sh patch

Ricardo Martins thecrown at softhome.net
Thu Nov 27 00:44:08 UTC 2003


Hi there

I think the sedcheck.sh script does not work as expected.
My system (Slackware GNU/Linux 9.0) ships with GNU sed version 3.02, and 
this script prints to stdout:

build-sed-host-binary
use-sed-host-binary

i.e. it seems that sed is compiled and then the version in my system is 
used (which does not support "-i" flag).
The following patch corrects this.

--------------------- PATCH START -------------------------------------
--- sedcheck.sh 2003-11-26 16:22:19.000000000 +0000
+++ /mnt/6/broot/sources/sedcheck.sh    2003-11-26 23:51:11.000000000 +0000
@@ -12,10 +12,11 @@
  $SED -i -e "s/HELLO/GOODBYE/" .sedtest >/dev/null 2>&1

  if [ $? != 0 ] ; then
-       rm -f .sedtest
-       echo build-sed-host-binary
+    echo build-sed-host-binary
+else
+    echo use-sed-host-binary
  fi;
+
  rm -f .sedtest
-echo use-sed-host-binary
--------------------- PATCH END ----------------------------------------

Regards
Ricardo Martins




More information about the uClibc mailing list