2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # Compilation-script for nightly builds.
5 # Should be copied to a private location (~/bin), so that
6 # git changes to that script can be reviewed before.
8 # Expects the Maxima git checkout in ~/maxima-code
10 # Calling from a cronjob does not work (don't know why),
11 # so call it from a screen session (which you can detach)
12 # and do everything in a loop.
16 echo "Build information"
17 echo "-----------------"
19 echo "Operating system: "
21 echo -n "Maxima GIT Version: "
23 echo -n "Wxmaxima GIT Version: "
24 git
-C wxmaxima
/wxmaxima-git-prefix
/src
/wxmaxima-git describe
25 echo -n "Build date and time (UTC): "
31 # Should be called as buildprocess win32 or buildprocess win64
35 if [ "$1" == "win64" ]
37 $CMAKE -DBUILD_CURRENT=YES
-DWITH_ABCL=YES
-DBUILD_64BIT=YES ..
39 $CMAKE -DBUILD_CURRENT=YES
-DWITH_ABCL=YES
-DBUILD_64BIT=NO ..
46 cp maxima-current-
*.exe ~
49 # sleep until a given time
51 sleep $
(( (24*60*60 + $
(date -d "$1" +%s
) - $
(date +%s
) ) % (24*60*60) ))
54 # do everything in English:
60 test -x $CMAKE ||
exit
62 cd ~
/maxima-code
/crosscompile-windows
/build ||
exit
66 rm -f ~
/maxima-
*-win32.exe ~
/maxima-
*-win64.exe ~
/buildlog-win32 ~
/buildlog-win64
69 buildprocess
"win32" 2>&1 |
tee ~
/buildlog-win32
70 buildprocess
"win64" 2>&1 |
tee ~
/buildlog-win64
72 for i
in ~
/maxima-current-win32.exe ~
/maxima-current-win64.exe ~
/buildlog-win32 ~
/buildlog-win64
; do
73 test -r $i && scp
-i ~
/.ssh
/maximakopierkey
$i maxima@ns3.dautermann.
at:/var
/www
/wolfgang.dautermann.at
/maxima
/nightlybuild
/