summaryrefslogtreecommitdiff
path: root/scripts/find
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-01-15 11:42:54 +0100
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-01-15 11:42:54 +0100
commitf3d2b753b0857e138033f1c2416caa46cd7c32da (patch)
tree27983399dfcbedac20bd5ae50ca3d0e1348566fe /scripts/find
parent3dc180799c659b0a5006745f18562285d452a2c7 (diff)
fix initramfs generation on Darwin with a small find wrapper
Diffstat (limited to 'scripts/find')
-rwxr-xr-xscripts/find13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/find b/scripts/find
new file mode 100755
index 000000000..3990e4f7f
--- /dev/null
+++ b/scripts/find
@@ -0,0 +1,13 @@
+#!/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.
+
+os=$(uname)
+case $os in
+ Darwin)
+ /opt/local/libexec/gnubin/find "$@"
+ ;;
+ *)
+ find "$@"
+ ;;
+esac