[uClibc] Patch for uClibc cvs using awk not in /usr/bin/awk

Peter S. Mazinger ps.m at gmx.net
Fri Oct 31 09:41:34 UTC 2003


Hello!

Due to the fact, that many startup-scripts are using awk, awk's path 
should be /bin/awk (busybox people). To support those not having 
/usr/bin/awk, apply attached patch (consider also adding /usr/bin/mawk as 
option). I also added last-resort awk (found in path).

Peter

-- 
Peter S. Mazinger <ps.m at gmx.net>   ID: 0xA5F059F2    NIC: IXUYHSKQLI
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2

____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu
-------------- next part --------------
--- uClibc-0.9.21/Rules.mak.mps	2003-10-30 14:07:49.000000000 +0100
+++ uClibc-0.9.21/Rules.mak	2003-10-30 14:16:35.000000000 +0100
@@ -81,7 +81,9 @@
 
 # check if we have nawk, otherwise user awk
 AWK:=$(shell if [ -x /usr/bin/nawk ]; then echo "/usr/bin/nawk"; \
-	else echo "/usr/bin/awk"; fi)
+	else if [ -x /usr/bin/awk ]; then echo "/usr/bin/awk"; \
+	else if [ -x /bin/awk ]; then echo "/bin/awk"; \
+	else echo "awk"; fi; fi; fi)
 
 HOST_ARCH:=$(shell uname -m | sed \
 		-e 's/i.86/i386/' \


More information about the uClibc mailing list