aboutsummaryrefslogtreecommitdiff
path: root/scripts/portability.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/portability.sh')
-rw-r--r--scripts/portability.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/portability.sh b/scripts/portability.sh
new file mode 100644
index 00000000..fddd84ec
--- /dev/null
+++ b/scripts/portability.sh
@@ -0,0 +1,6 @@
+# sourced to find alternate names for things
+
+if [ -z "$SED" ]
+then
+ [ ! -z "$(which gsed 2>/dev/null)" ] && SED=gsed || SED=sed
+fi