Subversion Repositories HomeAutomation

Rev

Rev 806 | Rev 809 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 806 Rev 808
Line 58... Line 58...
58
 
58
 
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
-
 
64
#   rm src
-
 
65
 
-
 
66
    #copy whole application
63
    rm src
67
    rm -rf src
-
 
68
   
-
 
69
    #with symlinks
64
    ln -s "$testappl" src
70
 #   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
65
   
87
   
66
    echo ""
88
    echo ""
67
    echo "#######################################"
89
    echo "#######################################"
68
    echo "Building $testappl"
90
    echo "Building $testappl"
69
    echo "#######################################"
91
    echo "#######################################"
70
    echo ""
92
    echo ""
71
   
93
   
72
    # Build application
94
    # Build application
73
    if make
95
    if make
74
    then
96
    then
75
        echo ""
97
        echo ""
76
        echo "#######################################"
98
        echo "#######################################"
77
        echo "$testappl successful, continues with next application"
99
        echo "$testappl successful, continues with next application"
78
        echo "#######################################"
100
        echo "#######################################"
79
        echo ""
101
        echo ""
80
       
102
       
81
        successfull=( "${successfull[@]}" "$testappl\n" )
103
        successfull=( "${successfull[@]}" "$testappl\n" )
82
 
104
 
83
    else
105
    else
84
        echo ""
106
        echo ""
85
        echo "#######################################"
107
        echo "#######################################"
86
        echo "$testappl failed, continues with next application"
108
        echo "$testappl failed, continues with next application"
87
        echo "#######################################"
109
        echo "#######################################"
88
        echo ""
110
        echo ""
89
       
111
       
90
        failed=( "${failed[@]}" "$testappl\n" )
112
        failed=( "${failed[@]}" "$testappl\n" )
91
    fi
113
    fi
92
 
114
 
93
    make clean
115
    make clean
-
 
116
       
-
 
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
#       rm src/config.inc
-
 
124
#   fi
94
       
125
   
95
    continue # On to next application
126
    continue # On to next application
96
  echo
127
  echo
97
done  
128
done  
98
 
129
 
99
 
130
 
100
# Remove test node after finished building
131
# Remove test node after finished building
101
cd ..
132
cd ..
102
rm -r "$TESTNODE"
133
rm -rf "$TESTNODE"
103
 
134
 
104
ENDDATE=`date`
135
ENDDATE=`date`
105
 
136
 
106
echo ""
137
echo ""
107
echo "#######################################"
138
echo "#######################################"