Commit a443e8f2 authored by Björn Peemöller 's avatar Björn Peemöller
Browse files

Impreoved check script

parent 06f3b067
......@@ -4,10 +4,34 @@ subdir=".curry"
compilers="cymake cymake_pakcs"
modules="*.curry"
targets="flat xml acy uacy"
if [ $# -eq 1 ]; then
targets=$1
fi
importdir="."
function usage()
{
echo "Usage: check.sh [OPTIONS] modules"
echo "Compare old and new frontend against each other"
echo ""
echo " -i DIR , --import-dir DIR Search for libraries in DIR"
echo " -i EXTS , --targets EXTS Create the target types EXTS (some of flat, xml, acy, uacy)"
echo " -h , --help Show this help and exit"
}
while [ "$1" != "" ]; do
case $1 in
-i | --import-dir ) shift
importdir=$1
;;
-t | --targets ) shift
targets=$1
;;
-h | --help ) usage
exit
;;
* ) modules=$*
break
esac
shift
done
for comp in $compilers; do
echo -e "$comp\n============"
......@@ -23,7 +47,7 @@ for comp in $compilers; do
# compile targets
for mdl in $modules; do
for tgt in $targets; do
$comp -e --$tgt $mdl
$comp -e -i $importdir --$tgt $mdl
done
done
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment