Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
JEquation.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 
4 
5 #
6 # \author mdejong
7 #
8 # ------------------------------------------------------------------------------------------
9 #
10 # Utility script to test JEquation.
11 #
12 # ------------------------------------------------------------------------------------------
13 
14 
15 if [ -z $JPP_DIR ]; then
16  echo "Variable JPP_DIR undefined."
17  exit
18 fi
19 
20 
21 source $JPP_DIR/setenv.sh $JPP_DIR
22 
23 
24 set_variable DEBUG 2
25 set_variable WORKDIR ${TMPDIR:-/tmp}/
26 
27 if do_usage $*; then
28  usage "$script [working directory]"
29 fi
30 
31 case $# in
32  1) set_variable WORKDIR $1;;
33 esac
34 
35 
36 set_variable INPUT_FILE $WORKDIR/equation.txt
37 
38 cat > $INPUT_FILE << EOF
39 #aap.noot.mies=123;
40  aap . noot . mies = { 123.123} ;
41 #aap.noot.mies=;
42 #aap.noot.;mies=1010101;
43 EOF
44 
45 echo "\ninput:\n"
46 cat $INPUT_FILE
47 
48 echo "\noutput:\n"
49 $JPP_DIR/examples/JLang/JEquation -f $INPUT_FILE
50 
51