Skip to content

Commit

Permalink
cron_grass8_relbranch_build_binaries.sh: update to GRASS GIS 8.2 stab…
Browse files Browse the repository at this point in the history
…le (#752)

- updated cronjob to build GRASS 8.2 binaries + addons from the `releasebranch_8_2` branch
  • Loading branch information
neteler committed Jun 3, 2022
1 parent 661e809 commit c3c6802
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
25 changes: 10 additions & 15 deletions utils/cronjobs_osgeo_lxd/cron_grass8_relbranch_build_binaries.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

# script to build GRASS 8.x binaries + addons from the `releasebranch_8_0` binaries
# script to build GRASS 8.x binaries + addons from the `releasebranch_8_2` binaries
# (c) GPL 2+ Markus Neteler <neteler@osgeo.org>
# 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022
#
Expand All @@ -23,20 +23,20 @@
# - Install apt-get install texlive-latex-extra python3-sphinxcontrib.apidoc
# - Clone source from github:
# mkdir -p ~/src ; cd ~/src
# git clone https://github.com/OSGeo/grass.git releasebranch_8_0
# cd releasebranch_8_0
# git checkout releasebranch_8_0
# git clone https://github.com/OSGeo/grass.git releasebranch_8_2
# cd releasebranch_8_2
# git checkout releasebranch_8_2
# - Prepare target directories:
# cd /var/www/code_and_data/
# mkdir grass80
# mkdir grass82
# cd /var/www/html/
# ln -s /var/www/code_and_data/grass80 .
# ln -s /var/www/code_and_data/grass82 .
#
##########################################
PATH=/home/neteler/binaries/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin

GMAJOR=8
GMINOR=0
GMINOR=2
DOTVERSION=$GMAJOR.$GMINOR
VERSION=$GMAJOR$GMINOR
GVERSION=$GMAJOR
Expand Down Expand Up @@ -80,13 +80,9 @@ configure_grass()
# --with-mysql --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql \

# cleanup
rm -rf man/__pycache__/ python/libgrass_interface_generator/ctypesgen/parser/__pycache__/ \
python/libgrass_interface_generator/ctypesgen/printer_json/__pycache__/ \
python/libgrass_interface_generator/ctypesgen/printer_python/__pycache__/ \
python/libgrass_interface_generator/ctypesgen/processor/__pycache__/ \
config_$GMAJOR.$GMINOR.git_log.txt
rm -rf config_$GMAJOR.$GMINOR.git_log.txt

# reset i18N POT files
# reset i18N POT files to git, just to be sure
git checkout locale/templates/*.pot

CFLAGS=$CFLAGSSTRING LDFLAGS=$LDFLAGSSTRING ./configure \
Expand Down Expand Up @@ -208,9 +204,8 @@ chmod -R a+r,g+w $TARGETPROGMAN/*
(cd $TARGETPROGMAN/ ; ln -s index.html main.html)

##### generate i18N POT files, needed for https://www.transifex.com/grass-gis/
# will be different from G82+ onwards (POTs are in git)
# from G82+ onwards the gettext POT files are managed in git
(cd locale ;
$MYMAKE pot
mkdir -p $TARGETDIR/transifex/
cp templates/*.pot $TARGETDIR/transifex/
)
Expand Down
10 changes: 7 additions & 3 deletions utils/cronjobs_osgeo_lxd/cron_job_list_grass
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@
50 02 * * 6 nice sh /home/neteler/cronjobs/cron_grass7_relbranch_src_snapshot.sh

# daily Linux binary snapshots, also creates main manuals, addon manuals, and prog-manual (target dir: /var/www/code_and_data/)
05 05 * * * nice sh /home/neteler/cronjobs/cron_grass8_relbranch_build_binaries.sh > /var/www/code_and_data/grass80/binary/linux/snapshot/build.log.txt 2>&1
05 06 * * * nice sh /home/neteler/cronjobs/cron_grass7_relbranch_build_binaries.sh > /var/www/code_and_data/grass78/binary/linux/snapshot/build.log.txt 2>&1
05 07 * * * nice sh /home/neteler/cronjobs/cron_grass8_main_build_binaries.sh > /var/www/code_and_data/grass81/binary/linux/snapshot/build.log.txt 2>&1
# old stable: G78
05 05 * * * nice sh /home/neteler/cronjobs/cron_grass7_relbranch_build_binaries.sh > /var/www/code_and_data/grass78/binary/linux/snapshot/build.log.txt 2>&1
# stable: G82
05 15 * * * nice sh /home/neteler/cronjobs/cron_grass8_relbranch_build_binaries.sh > /var/www/code_and_data/grass82/binary/linux/snapshot/build.log.txt 2>&1
# dev: G83
05 25 * * * nice sh /home/neteler/cronjobs/cron_grass8_main_build_binaries.sh > /var/www/code_and_data/grass83/binary/linux/snapshot/build.log.txt 2>&1


# generate osgeo_mailman_stats/ + email
# ...note: runs as a root cronjob on osgeo6 machine (lists.osgeo.org server)

0 comments on commit c3c6802

Please sign in to comment.