aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/wrapper/.gitignore2
-rw-r--r--[-rwxr-xr-x]scripts/wrapper/awk.in (renamed from scripts/gawk/awk)2
-rw-r--r--[-rwxr-xr-x]scripts/wrapper/sed.in (renamed from scripts/gsed/sed)4
3 files changed, 5 insertions, 3 deletions
diff --git a/scripts/wrapper/.gitignore b/scripts/wrapper/.gitignore
new file mode 100644
index 0000000..7142991
--- /dev/null
+++ b/scripts/wrapper/.gitignore
@@ -0,0 +1,2 @@
+awk
+sed
diff --git a/scripts/gawk/awk b/scripts/wrapper/awk.in
index 89da46f..1e7397a 100755..100644
--- a/scripts/gawk/awk
+++ b/scripts/wrapper/awk.in
@@ -4,4 +4,4 @@
# awk will invoke gawk (rather than mawk etc.).
# We use this to work around systems with awk != gawk.
-gawk "$@"
+exec ${AWK:-@GAWK@} "$@"
diff --git a/scripts/gsed/sed b/scripts/wrapper/sed.in
index 877fd5d..8d8f91a 100755..100644
--- a/scripts/gsed/sed
+++ b/scripts/wrapper/sed.in
@@ -1,7 +1,7 @@
#!/bin/sh
# We can add the current directory to the front of PATH so that
-# sed will invoke gsed (rather than Apple's sed, for example).
+# sed will invoke gsed (rather than FreeBSD's sed, for example).
# We use this to work around systems with sed != gsed.
-gsed "$@"
+exec ${SED:-@GSED@} "$@"