diff options
| author | Dan Cross <cross@gajendra.net> | 2025-07-24 16:25:44 +0000 |
|---|---|---|
| committer | Dan Cross <cross@gajendra.net> | 2025-07-24 16:25:44 +0000 |
| commit | 67dd74a9640dfd9192b3e1d07c3ff9e7cc4cbf75 (patch) | |
| tree | 0e2d4f62bee11d2e4281f137bdf7de5753967ed9 /INSTALL | |
| parent | 4089e29e89026f0b581155987d5f683d7635fd13 (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.
Diffstat (limited to 'INSTALL')
| -rwxr-xr-x | INSTALL | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |