From: <arj...@us...> - 2010-12-03 07:49:50
|
Revision: 11361 http://plplot.svn.sourceforge.net/plplot/?rev=11361&view=rev Author: arjenmarkus Date: 2010-12-03 07:49:43 +0000 (Fri, 03 Dec 2010) Log Message: ----------- Present the unknown options in addition to the information on the (correct) usage, to make it easier to correct typos and such Modified Paths: -------------- trunk/scripts/comprehensive_test.sh Modified: trunk/scripts/comprehensive_test.sh =================================================================== --- trunk/scripts/comprehensive_test.sh 2010-12-01 19:31:36 UTC (rev 11360) +++ trunk/scripts/comprehensive_test.sh 2010-12-03 07:49:43 UTC (rev 11361) @@ -37,7 +37,9 @@ [--help] Show this message. " - exit $1 + if [ $1 -ne 0 ]; then + exit $1 + fi } comprehensive_test () { @@ -185,6 +187,8 @@ build_command="make -j4" +usage_reported=0 + while test $# -gt 0; do case $1 in @@ -304,12 +308,21 @@ usage 0 1>&2 ;; *) - usage 1 1>&2 + if [ $usage_reported -eq 0 ]; then + usage_reported=1 + usage 0 1>&2 + echo " " + fi + echo "Unknown option: $1" ;; esac shift done +if [ $usage_reported -eq 1 ]; then + exit 1 +fi + echo "Summary of options used for these tests generator_string = $generator_string This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |