Make these scripts work on SunOS too.
[oota-llvm.git] / utils / llvmdo
index eb696184711bb1448e43b1ac76db6e240fb3cc3b..4e7465dbdaa02b939f5c3d848ffbebbbf5bad1ab 100755 (executable)
@@ -47,7 +47,11 @@ ARGS="$*"
 TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
 if test -d "$TOPDIR" ; then
   cd $TOPDIR
-  find $LLVMDO_DIRS -type f \
+  case `uname -s` in
+    SunOS) find_prog=gfind ;;
+    *) find_prog=find ;;
+  esac
+  $find_prog $LLVMDO_DIRS -type f \
     \( \
       -path 'docs/doxygen/*' -o \
       -path 'docs/CommandGuide/html/*' -o \