# used in LLVM as it progresses.
#
# Usage:
-# llvmdo [-dirs "DIRNAMES..." PROGRAM ARGS...
+# llvmdo [-dirs "DIRNAMES..."] PROGRAM ARGS...
#
# The -dirs argument allows you to specify the set of directories that are
# searched. By default, everything is searched. Note that you must use quotes
exit 1
fi
shift;
-ARGS="$*"
TOPDIR=`pwd | sed -e 's#\(.*/llvm\).*#\1#'`
if test -d "$TOPDIR" ; then
cd $TOPDIR
\! -name 'FileParser.h' \
\! -name 'StackerParser.h' \
\! -name 'StackerParser.cpp' \
- -exec $PROGRAM $ARGS {} \; \
+ -exec $PROGRAM "$@" {} \; \
\)
else
echo "Can't find LLVM top directory in $TOPDIR"