| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # get the number of command-line arguments given | 3 # get the number of command-line arguments given |
| 4 ARGC=$# | 4 ARGC=$# |
| 5 | 5 |
| 6 if [[ $ARGC -eq 1 ]]; | 6 if [[ $ARGC -eq 1 ]]; |
| 7 then | 7 then |
| 8 if [[ $1 = "simple1" ]]; | 8 if [[ $1 = "simple" ]]; |
| 9 then |
| 10 ./../../template/template name_entry_simple.tmpl name_entry.dart |
| 11 cd ../../../frog |
| 12 ./frog.py --html -- ../utils/tests/template/test_simple.dart |
| 13 elif [[ $1 = "simple1" ]]; |
| 9 then | 14 then |
| 10 ./../../template/template name_entry.tmpl name_entry.dart | 15 ./../../template/template name_entry.tmpl name_entry.dart |
| 11 cd ../../../frog | 16 cd ../../../frog |
| 12 ./frog.py --html -- ../utils/tests/template/test_simple.dart | 17 ./frog.py --html -- ../utils/tests/template/test_simple.dart |
| 13 elif [[ $1 == "simple2" ]]; | 18 elif [[ $1 == "simple2" ]]; |
| 14 then | 19 then |
| 15 ./../../template/template name_entry2.tmpl name_entry.dart | 20 ./../../template/template name_entry2.tmpl name_entry.dart |
| 16 cd ../../../frog | 21 cd ../../../frog |
| 17 ./frog.py --html -- ../utils/tests/template/test_simple.dart | 22 ./frog.py --html -- ../utils/tests/template/test_simple.dart |
| 18 elif [[ $1 == "simple3" ]]; | 23 elif [[ $1 == "simple3" ]]; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 rm -f top_searches.dart | 95 rm -f top_searches.dart |
| 91 echo "rm top_searches2.dart" | 96 echo "rm top_searches2.dart" |
| 92 rm -f top_searches2.dart | 97 rm -f top_searches2.dart |
| 93 echo "rm realviews.dart" | 98 echo "rm realviews.dart" |
| 94 rm -f realviews.dart | 99 rm -f realviews.dart |
| 95 fi | 100 fi |
| 96 else | 101 else |
| 97 echo -e "\033[31mUnknown test\033[0m" | 102 echo -e "\033[31mUnknown test\033[0m" |
| 98 echo -e "" | 103 echo -e "" |
| 99 echo -e "Known tests are:" | 104 echo -e "Known tests are:" |
| 105 echo -e " simple" |
| 100 echo -e " simple1" | 106 echo -e " simple1" |
| 101 echo -e " simple2" | 107 echo -e " simple2" |
| 102 echo -e " simple3" | 108 echo -e " simple3" |
| 103 echo -e " simple4" | 109 echo -e " simple4" |
| 104 echo -e " simplecall" | 110 echo -e " simplecall" |
| 105 echo -e " with1" | 111 echo -e " with1" |
| 106 echo -e " with2" | 112 echo -e " with2" |
| 107 echo -e " with3" | 113 echo -e " with3" |
| 108 echo -e " nested" | 114 echo -e " nested" |
| 109 echo -e " list" | 115 echo -e " list" |
| 110 echo -e " complex" | 116 echo -e " complex" |
| 111 echo -e " complexcss" | 117 echo -e " complexcss" |
| 112 echo -e " complex2" | 118 echo -e " complex2" |
| 113 echo -e " real" | 119 echo -e " real" |
| 114 echo -e "" | 120 echo -e "" |
| 115 echo -e "clean - removes all template generated Dart classes" | 121 echo -e "clean - removes all template generated Dart classes" |
| 116 fi | 122 fi |
| 117 | 123 |
| OLD | NEW |