compile.sh 407 B

1234567891011121314151617
  1. #!/bin/bash
  2. set -e
  3. source library.sh
  4. address=$1
  5. filename=`realpath $2`
  6. username=$3
  7. modulename=$4
  8. mode=$5
  9. # Leave this here too, as the call might crash early
  10. curl $address -d "op=set_input&username=user_manager&element_type=V&value=\"$username\"" -s -S >> /dev/null
  11. cd interface/HUTN
  12. ${python} hutn_compiler/compiler.py $filename grammars/actionlanguage.g $mode $username $modulename $filename $address