Rev 808 | Rev 813 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 808 | Rev 809 | ||
|---|---|---|---|
| Line 59... | Line 59... | ||
| 59 | for testappl in $APPLPATH* |
59 | for testappl in $APPLPATH* |
| 60 | do |
60 | do |
| 61 | echo; echo |
61 | echo; echo |
| 62 | 62 | ||
| 63 | #with symlinks |
63 | #with symlinks |
| 64 | # rm src |
- | |
| 65 | - | ||
| 66 | #copy whole application |
- | |
| 67 | rm -rf src |
- | |
| 68 | - | ||
| 69 | #with symlinks |
- | |
| 70 |
|
64 | ln -s "$testappl" src |
| 71 | - | ||
| 72 | #copy whole application |
- | |
| 73 | cp -r "$testappl" src |
- | |
| 74 | - | ||
| 75 | #with symlinks |
- | |
| 76 | # if test -e "src/config.inc" |
- | |
| 77 | # then |
- | |
| 78 | # CONF_EXIST=true |
- | |
| 79 | # echo "config.inc already exist" |
- | |
| 80 | # else |
- | |
| 81 | # cp src/config.inc.template src/config.inc |
- | |
| 82 | # CONF_EXIST=false |
- | |
| 83 | # fi |
- | |
| 84 | - | ||
| 85 | #copy whole application |
- | |
| 86 | cp src/config.inc.template src/config.inc |
- | |
| 87 | 65 | ||
| 88 | echo "" |
66 | echo "" |
| 89 | echo "#######################################" |
67 | echo "#######################################" |
| 90 | echo "Building $testappl" |
68 | echo "Building $testappl" |
| 91 | echo "#######################################" |
69 | echo "#######################################" |
| 92 | echo "" |
70 | echo "" |
| 93 | 71 | ||
| 94 | # Build application |
72 | # Build application |
| 95 | if make |
73 | if make |
| 96 | then |
74 | then |
| 97 | echo "" |
75 | echo "" |
| 98 | echo "#######################################" |
76 | echo "#######################################" |
| 99 | echo "$testappl successful, continues with next application" |
77 | echo "$testappl successful, continues with next application" |
| 100 | echo "#######################################" |
78 | echo "#######################################" |
| 101 | echo "" |
79 | echo "" |
| 102 | 80 | ||
| 103 | successfull=( "${successfull[@]}" "$testappl\n" ) |
81 | successfull=( "${successfull[@]}" "$testappl\n" ) |
| 104 | 82 | ||
| 105 | else |
83 | else |
| 106 | echo "" |
84 | echo "" |
| 107 | echo "#######################################" |
85 | echo "#######################################" |
| 108 | echo "$testappl failed, continues with next application" |
86 | echo "$testappl failed, continues with next application" |
| 109 | echo "#######################################" |
87 | echo "#######################################" |
| 110 | echo "" |
88 | echo "" |
| 111 | 89 | ||
| 112 | failed=( "${failed[@]}" "$testappl\n" ) |
90 | failed=( "${failed[@]}" "$testappl\n" ) |
| 113 | fi |
91 | fi |
| 114 | 92 | ||
| 115 | make clean |
93 | make clean |
| 116 | 94 | rm src |
|
| 117 | #with symlinks |
- | |
| 118 | # if CONF_EXIST |
- | |
| 119 | # then |
- | |
| 120 | # echo "config.inc existed already, dont remove" |
- | |
| 121 | # else |
- | |
| 122 | # echo "removing config.inc" |
- | |
| 123 |
|
95 | rm config.inc |
| 124 | # fi |
- | |
| 125 | 96 | ||
| 126 | continue # On to next application |
97 | continue # On to next application |
| 127 | echo |
98 | echo |
| 128 | done |
99 | done |
| 129 | 100 | ||
| 130 | 101 | ||
| 131 | # Remove test node after finished building |
102 | # Remove test node after finished building |
| 132 | cd .. |
103 | cd .. |
| 133 | rm - |
104 | rm -r "$TESTNODE" |
| 134 | 105 | ||
| 135 | ENDDATE=`date` |
106 | ENDDATE=`date` |
| 136 | 107 | ||
| 137 | echo "" |
108 | echo "" |
| 138 | echo "#######################################" |
109 | echo "#######################################" |