feature magic is an amplification factor for edge sharpening (not corners)
[engrid.git] / src / scripts / nightly.bash
blob18ec6ca372832612cc7dbfbf48ca7216d3598082
1 #!/usr/bin/env bash
2 #
3 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 # + +
5 # + This file is part of enGrid. +
6 # + +
7 # + Copyright 2008-2013 enGits GmbH +
8 # + +
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. +
13 # + +
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. +
18 # + +
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/>. +
21 # + +
22 # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
25 set -x
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
38 #Generate TODO lists
39 ./scripts/checkcomments.py *.h *.cxx *.cpp math/*.h > comments.mail
40 if [ -s comments.mail ]
41 then
42 mailx -s "ENGRID: comments" $RECIPIENTS < comments.mail
45 #test build
46 touch build.log
47 pwd
48 ./scripts/rebuild.sh 1>build.log 2>&1
49 if [ $? -ne 0 ]
50 then
51 echo "BUILD FAILED"
52 mailx -s "ENGRID: build test failed" $RECIPIENTS < ./build.log
53 else
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)