aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2025-07-24 16:25:44 +0000
committerDan Cross <cross@gajendra.net>2025-07-24 16:25:44 +0000
commit67dd74a9640dfd9192b3e1d07c3ff9e7cc4cbf75 (patch)
tree0e2d4f62bee11d2e4281f137bdf7de5753967ed9
parent4089e29e89026f0b581155987d5f683d7635fd13 (diff)
INSTALL: set defaults for awk and egrep
Set defaults for `awk` and `egrep`, instead of setting things multiple times when specializing on OS, and using a default in a `case` statement. This is cleaner and less error-prone.
-rwxr-xr-xINSTALL8
1 files changed, 2 insertions, 6 deletions
diff --git a/INSTALL b/INSTALL
index f64b8acd..b976b817 100755
--- a/INSTALL
+++ b/INSTALL
@@ -37,6 +37,8 @@ PATH=/bin:/usr/bin:$PLAN9/bin:$PATH export PATH
[ -z "$PLAN9_TARGET" ] && PLAN9_TARGET="$PLAN9"
export PLAN9_TARGET
+egrep=egrep
+awk=awk
case `uname` in
SunOS)
awk=nawk
@@ -63,16 +65,10 @@ DragonFly|*BSD)
;;
esac
echo "CFLAGS='-pthread'" >> $PLAN9/config
- awk=awk
;;
*Linux*)
- awk=awk
egrep='grep -E'
;;
-*)
- egrep=egrep
- awk=awk
- ;;
esac
echo "egrep='$egrep'" >>$PLAN9/config