3 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
5 # + This file is part of enGrid. +
7 # + Copyright 2008-2013 enGits GmbH +
9 # + enGrid is free software: you can redistribute it and/or modify +
10 # + it under the terms of the GNU General Public License as published by +
11 # + the Free Software Foundation, either version 3 of the License, or +
12 # + (at your option) any later version. +
14 # + enGrid is distributed in the hope that it will be useful, +
15 # + but WITHOUT ANY WARRANTY; without even the implied warranty of +
16 # + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
17 # + GNU General Public License for more details. +
19 # + You should have received a copy of the GNU General Public License +
20 # + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
22 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
27 RECIPIENTS
='mtaverne@engits.com ogloth@engits.com'
29 NIGHTLYDIR
=/var
/www
/ftp
/nightly
31 #Create a nightly source tarball and put it on the FTP server
32 .
/scripts
/makedist.bash ..
$NIGHTLYDIR
34 #Update online documentation
35 /opt
/shared
/alternatives
/bin
/doxygen
36 #/usr/bin/doxygen Doxyfile
39 .
/scripts
/checkcomments.py
*.h
*.cxx
*.cpp math
/*.h
> comments.
mail
40 if [ -s comments.
mail ]
42 mailx
-s "ENGRID: comments" $RECIPIENTS < comments.
mail
48 .
/scripts
/rebuild.sh
1>build.log
2>&1
52 mailx
-s "ENGRID: build test failed" $RECIPIENTS < .
/build.log
54 echo "BUILD SUCCESSFUL"
55 mailx
-s "ENGRID: build test successful" $RECIPIENTS < .
/build.log
58 # copy nightly build into nightly build directory
59 DATE
=$
(date +%Y
%m
%d_
%H
%M
%S
)
60 cp -v .
/engrid
"$NIGHTLYDIR/engrid_$DATE" ||
(echo mailx
-s "failed to copy engrid into $NIGHTLYDIR" $RECIPIENTS)