--base=*) BUILDBASE=${1#*=} ;;
--branches=*) branches=${1#*=} ;;
-j*) jobs=$1 ;;
+ --) shift; break ;;
-*) echo >&2 "Unknown option: $1"; exit 1 ;;
*) break ;;
esac
save=$(git rev-parse HEAD) &&
- Meta/Make $M ${test+"$test"} $jobs -- ${with_dash:+SHELL_PATH=/bin/dash} $dotest &&
+ Meta/Make $M ${test+"$test"} $jobs -- ${with_dash:+SHELL_PATH=/bin/dash} "$@" $dotest &&
{
test -n "$skip_doc" ||
test z$install = znoinstall ||
if test "$save" = "$(git rev-parse HEAD)"
then
- Meta/Make $M -- ${with_dash:+SHELL_PATH=/bin/dash} install
+ Meta/Make $M -- ${with_dash:+SHELL_PATH=/bin/dash} "$@" install
else
echo >&2 "Head moved--not installing"
fi
sed -e 's/-/./g'
}
+case "$NO_PEDANTIC" in
+?*) ;;
+'')
+ PEDANT="-Werror -Wold-style-definition -std=c99 $PEDANT"
+ PEDANT="-Wpointer-arith -Woverflow -Wunused $PEDANT"
+ PEDANT="-Wold-style-declaration -Wstrict-prototypes $PEDANT"
+ ;;
+esac
+
while case $# in 0) break ;; esac
do
case "$1" in
- -pedantic | --pedantic)
- case "$NO_PEDANTIC" in
- ?*) ;;
- '')
- O="-Werror -Wold-style-definition -std=c99 $O"
- O="-Wno-pointer-to-int-cast $O"
- O="-Wpointer-arith -Woverflow -Wunused $O"
- O="-Wold-style-declaration -Wstrict-prototypes $O"
- ;;
- esac
- # -Wvla
- # O="$O -fwrapv -fno-strict-overflow"
+ --pedantic)
+ echo >&2 "(no need to say --pedantic)"
;;
-j*)
case "$NO_JOBS" in
oldtest=t
;;
-loose | --loose)
- Wall=
+ PEDANT= Wall=
;;
--locale=*)
LANG=${1#*=}
esac
shift
done
+O="${PEDANT}${PEDANT:+ }$O"
test -f /bin/dash || with_dash=