Skip to content

Commit

Permalink
cron_grass8_relbranch_build_binaries.sh: comments updated (#741)
Browse files Browse the repository at this point in the history
- explain preparations on server
  • Loading branch information
neteler committed May 1, 2022
1 parent 69e7133 commit a3cd76e
Showing 1 changed file with 26 additions and 15 deletions.
41 changes: 26 additions & 15 deletions utils/cronjobs_osgeo_lxd/cron_grass8_relbranch_build_binaries.sh
Expand Up @@ -2,17 +2,10 @@

# script to build GRASS 8.x binaries + addons from the `releasebranch_8_0` binaries
# (c) GPL 2+ Markus Neteler <neteler@osgeo.org>
# 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021
# 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022
#
# GRASS GIS github, https://github.com/OSGeo/grass
#
## prep, on neteler@grasslxd:$
# mkdir -p ~/src
# cd ~/src
# # G80 ...
# for i in 0 ; do git clone https://github.com/OSGeo/grass.git releasebranch_8_$i ; done
# for i in 0 ; do (cd releasebranch_8_$i ; git checkout releasebranch_8_$i ) ; done
#
###################################################################
# how it works:
# - it updates locally the GRASS source code from github server
Expand All @@ -24,14 +17,22 @@
# - generates the user 8 HTML manuals
# - injects DuckDuckGo search field

# Preparations:
# - Install PROJ: http://trac.osgeo.org/proj/ incl Datum shift grids
# sh conf_proj4.sh
# - Install GDAL: http://trac.osgeo.org/gdal/wiki/DownloadSource
# sh conf_gdal.sh
# Preparations, on server:
# - Install PROJ incl Datum shift grids
# - Install GDAL:
# - Install apt-get install texlive-latex-extra python3-sphinxcontrib.apidoc
# - Clone source from github
#################################
# - 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
# - Prepare target directories:
# cd /var/www/code_and_data/
# mkdir grass80
# cd /var/www/html/
# ln -s /var/www/code_and_data/grass80 .
#
##########################################
PATH=/home/neteler/binaries/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin

GMAJOR=8
Expand Down Expand Up @@ -78,6 +79,15 @@ configure_grass()
# which package?
# --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

# reset i18N POT files
git checkout locale/templates/*.pot

CFLAGS=$CFLAGSSTRING LDFLAGS=$LDFLAGSSTRING ./configure \
--with-cxx \
Expand Down Expand Up @@ -198,6 +208,7 @@ 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)
(cd locale ;
$MYMAKE pot
mkdir -p $TARGETDIR/transifex/
Expand Down

0 comments on commit a3cd76e

Please sign in to comment.