llvm.org GIT mirror llvm / 054defa
Make these scripts work on SunOS too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16805 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 15 years ago
2 changed file(s) with 11 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4646 TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
4747 if test -d "$TOPDIR" ; then
4848 cd $TOPDIR
49 find $LLVMDO_DIRS -type f \
49 case `uname -s` in
50 SunOS) find_prog=gfind ;;
51 *) find_prog=find ;;
52 esac
53 $find_prog $LLVMDO_DIRS -type f \
5054 \( \
5155 -path 'docs/doxygen/*' -o \
5256 -path 'docs/CommandGuide/html/*' -o \
2020 TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
2121 if test -d "$TOPDIR" ; then
2222 cd $TOPDIR
23 ./utils/llvmdo -dirs "include lib tools utils docs examples test projects" egrep -H -n "$*"
23 case `uname -s` in
24 SunOS) grep_cmd="ggrep -H -n" ;;
25 Linux) grep_cmd="egrep -H -n" ;;
26 *) grep_cmd="egrep -l -n" ;;
27 esac
28 ./utils/llvmdo -dirs "include lib tools utils docs examples test projects" $grep_cmd "$*"
2429 else
2530 echo "Can't find LLVM top directory in $TOPDIR"
2631 fi