Browse Source

testme.sh: added parameter checking

Steffen Jaeckel 14 years ago
parent
commit
2b0ce25778
1 changed files with 7 additions and 0 deletions
  1. 7 0
      testme.sh

+ 7 - 0
testme.sh

@@ -1,5 +1,12 @@
 #!/bin/bash
 
+if [ $# -lt 3 ]
+then
+  echo "usage is: ${0##*/} <which makefile> <additional defines> <path to math provider>"
+  echo "e.g. \"${0##*/} makefile \"-DUSE_LTM -DLTM_DESC -I/path/to/libtommath\" /path/to/libtommath/libtommath.a\""
+  exit -1
+fi
+
 # date
 echo "date="`date`