| OLD | NEW | 
| (Empty) |  | 
 |   1 #!/bin/bash | 
 |   2  | 
 |   3 # get the number of command-line arguments given | 
 |   4 ARGC=$# | 
 |   5  | 
 |   6 if [[ $ARGC -eq 1 ]]; | 
 |   7 then | 
 |   8   if [[ $1 = "simple1" ]]; | 
 |   9   then | 
 |  10     ./../../template/template name_entry.tmpl name_entry.dart | 
 |  11     cd ../../../frog | 
 |  12     ./frog.py --html -- ../utils/tests/template/test_simple.dart | 
 |  13   elif [[ $1 == "simple2" ]]; | 
 |  14   then | 
 |  15     ./../../template/template name_entry2.tmpl name_entry.dart | 
 |  16     cd ../../../frog | 
 |  17     ./frog.py --html -- ../utils/tests/template/test_simple.dart | 
 |  18   elif [[ $1 == "simple3" ]]; | 
 |  19   then | 
 |  20     ./../../template/template name_entry_css.tmpl name_entry.dart | 
 |  21     cd ../../../frog | 
 |  22     ./frog.py --html -- ../utils/tests/template/test_simple.dart | 
 |  23   elif [[ $1 == "with1" ]]; | 
 |  24   then | 
 |  25     ./../../template/template productview.tmpl productview.dart | 
 |  26     cd ../../../frog | 
 |  27     ./frog.py --html -- ../utils/tests/template/test_with.dart | 
 |  28   elif [[ $1 == "with2" ]]; | 
 |  29   then | 
 |  30     ./../../template/template productview2.tmpl productview.dart | 
 |  31     cd ../../../frog | 
 |  32     ./frog.py --html -- ../utils/tests/template/test_with.dart | 
 |  33   elif [[ $1 == "list" ]]; | 
 |  34   then | 
 |  35     ./../../template/template applications.tmpl applications.dart | 
 |  36     cd ../../../frog | 
 |  37     ./frog.py --html -- ../utils/tests/template/test_list.dart | 
 |  38   elif [[ $1 == "complex" ]]; | 
 |  39   then | 
 |  40     ./../../template/template top_searches.tmpl top_searches.dart | 
 |  41     cd ../../../frog | 
 |  42     ./frog.py --html -- ../utils/tests/template/test_complex.dart | 
 |  43   elif [[ $1 == "complexcss" ]]; | 
 |  44   then | 
 |  45     ./../../template/template top_searches_css.tmpl top_searches.dart | 
 |  46     cd ../../../frog | 
 |  47     ./frog.py --html -- ../utils/tests/template/test_complex.dart | 
 |  48   elif [[ $1 == "complex2" ]]; | 
 |  49   then | 
 |  50     ./../../template/template top_searches2.tmpl top_searches2.dart | 
 |  51     cd ../../../frog | 
 |  52     ./frog.py --html -- ../utils/tests/template/test_complex2.dart | 
 |  53   elif [[ $1 == "real" ]]; | 
 |  54   then | 
 |  55     ./../../template/template realviews.tmpl realviews.dart | 
 |  56     cd ../../../frog | 
 |  57     ./frog.py --html -- ../utils/tests/template/real_app.dart | 
 |  58   elif [[ $1 == "clean" ]]; | 
 |  59   then | 
 |  60     # remove all generated templates | 
 |  61     echo "rm name_entry.dart" | 
 |  62     rm -f name_entry.dart | 
 |  63     echo "rm productview.dart" | 
 |  64     rm -f productview.dart | 
 |  65     echo "rm applications.dart" | 
 |  66     rm -f applications.dart | 
 |  67     echo "rm top_searches.dart" | 
 |  68     rm -f top_searches.dart | 
 |  69     echo "rm top_searches2.dart" | 
 |  70     rm -f top_searches2.dart | 
 |  71     echo "rm realviews.dart" | 
 |  72     rm -f realviews.dart | 
 |  73   fi | 
 |  74 else | 
 |  75   echo -e "\033[31mUnknown test\033[0m" | 
 |  76   echo -e "" | 
 |  77   echo -e "Known tests are:" | 
 |  78   echo -e "  simple1" | 
 |  79   echo -e "  simple2" | 
 |  80   echo -e "  simple3" | 
 |  81   echo -e "  with1" | 
 |  82   echo -e "  with2" | 
 |  83   echo -e "  list" | 
 |  84   echo -e "  complex" | 
 |  85   echo -e "  complexcss" | 
 |  86   echo -e "  complex2" | 
 |  87   echo -e "  real" | 
 |  88   echo -e "" | 
 |  89   echo -e "clean - removes all template generated Dart classes" | 
 |  90 fi | 
 |  91  | 
| OLD | NEW |