summaryrefslogtreecommitdiff
path: root/scripts/awk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-12-28 16:10:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-28 16:10:41 +0100
commitbc4105bc807f3159ca77811a10abde2f2784176f (patch)
tree943c4f7ea093e274b5a4a1504009df0677ccab1e /scripts/awk
parent03c7aed5dcad2172bbe1bcd311fabb63fbf6dca0 (diff)
fix some minor issues on OpenBSD host
Diffstat (limited to 'scripts/awk')
-rwxr-xr-xscripts/awk9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/awk b/scripts/awk
new file mode 100755
index 000000000..ff6f9b002
--- /dev/null
+++ b/scripts/awk
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+if [ -z "$(which gawk 2>/dev/null)" ];then
+ /bin/awk "$@"
+else
+ gawk "$@"
+fi