Skip to content

Commit

Permalink
Rename tools directory to utils (grass8 branch) (#649)
Browse files Browse the repository at this point in the history
* Rename tools directory to utils

Apply directory naming from grass-code also here (OSGeo/grass#1348):

- utils is more common for helper scripts then tools which is too close to modules.

* remove some superfluous URLs
  • Loading branch information
neteler committed Dec 22, 2021
1 parent 4bfeb3a commit 35e3a12
Show file tree
Hide file tree
Showing 72 changed files with 29 additions and 32 deletions.
4 changes: 2 additions & 2 deletions src/raster/r.findtheriver/ReadMe-OSX.rtf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ I haven't tried it with a module that also includes its own library.\
(other_src.c)\
(other_header.h)\
ReadMe.rtf\
tools\
utils\

\f0\fs28 \

Expand Down Expand Up @@ -165,4 +165,4 @@ This program is free software under the GNU General Public License (>=v2).\
{\field{\*\fldinst{HYPERLINK "http://www.kyngchaos.com"}}{\fldrslt
\fs28 \cf0 http://www.kyngchaos.com/}}
\fs28 \
}
}
4 changes: 2 additions & 2 deletions src/raster/r.slope.direction/r_slope_direction_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ mogrify -trim $output
# some bounding box problems noticed when opening mogrify result in Gimp

# Optimize for SVN
../../../../tools/svn-image.sh $output
../../../../utils/svn-image.sh $output
done

# Compute slope of the streets for three different step-size (neighborhood)
Expand All @@ -103,5 +103,5 @@ mogrify -trim $output
# some bounding box problems noticed when opening mogrify result in Gimp

# Optimize for SVN
../../../../tools/svn-image.sh $output
../../../../utils/svn-image.sh $output
done
2 changes: 1 addition & 1 deletion src/tools/mk_isis_menu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#In $GRASS_HOME/gui/wxpython/gis_set.py it will not be appropriate
#if os.getenv('ISISROOT'):
# os.popen("bash "+os.path.join(globalvar.GUIDIR, "tools", "mk_isis_menu.sh")
# os.popen("bash "+os.path.join(globalvar.GUIDIR, "utils", "mk_isis_menu.sh")

#Toolbox
tbfile="$HOME/.grass7/toolboxes/toolboxes.xml"
Expand Down
2 changes: 1 addition & 1 deletion tools/addons/README.txt → utils/addons/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Cronjobs are run on the `grasslxd` container (on Server `osgeo7`).
For details, see:
https://github.com/OSGeo/grass-addons/blob/master/tools/cronjobs_osgeo_lxd/README.md
https://github.com/OSGeo/grass-addons/blob/master/utils/cronjobs_osgeo_lxd/README.md


## Old WORKFLOW
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

# updated for new CMS path MN 8/2015
# updated to new utils/ path MN 12/2021

DIR=$HOME/src
# XMLDIR=/var/www/grass/grass-cms/addons/
Expand All @@ -14,7 +15,7 @@ if [ ! -d "$XMLDIR" ]; then
fi

build_addons() {
cd tools/addons/
cd utils/addons/
./compile-xml.sh $XMLDIR
for version in 6 7 ; do
cd /tmp/.grass${version}/addons/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions tools/addons/crontab.build → utils/addons/crontab.build
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
### Cronjob for Building server

# add jobs here and then run:
# crontab $HOME/src/grass_addons/tools/addons/crontab.build && crontab -l
# crontab $HOME/src/grass_addons/utils/addons/crontab.build && crontab -l
#
# install dependencies
# apt install grass-dev make bc
# apt install python-gdal python-owslib python-psycopg2 python-matplotlib python-scipy

ADDONS=${HOME}/src/grass-addons/tools/addons
ADDONS=${HOME}/src/grass-addons/utils/addons

0 2 * * * nice ${ADDONS}/compile-grass.sh
*/15 * * * * nice ${ADDONS}/grass-addons-build.sh
Expand Down
4 changes: 2 additions & 2 deletions tools/addons/crontab.publish → utils/addons/crontab.publish
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### Cronjob for Publishing server (grass.osgeo.org)

# add jobs here and then run:
# crontab $HOME/src/grass_addons/tools/addons/crontab.publish && crontab -l
# crontab $HOME/src/grass_addons/utils/addons/crontab.publish && crontab -l

ADDONS=${HOME}/src/grass-addons/tools/addons
ADDONS=${HOME}/src/grass-addons/utils/addons

*/15 * * * * nice ${ADDONS}/grass-addons-publish.sh
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [ "$run" == "2" ]; then
exit 0
fi

${SRC}/grass-addons/tools/addons/compile-addons.sh "$1"
${SRC}/grass-addons/utils/addons/compile-addons.sh "$1"

if [ $? != 0 ] ; then
exit 0
Expand All @@ -30,7 +30,7 @@ manuals() {
for dir in `find . -maxdepth 1 -type d`; do
if [ -d $dir/docs/html ] ; then
for f in `pwd`/$dir/docs/html/*.html ; do
${SRC}/grass-addons/tools/addons/update_manual.py $f https://grass.osgeo.org/grass${1}${2}/manuals `pwd`
${SRC}/grass-addons/utils/addons/update_manual.py $f https://grass.osgeo.org/grass${1}${2}/manuals `pwd`
done
cp -r $dir/docs/html/* $HTMLDIR/ 2>/dev/null
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ generate () {
<body bgcolor=\"#FFFFFF\">
<h2>GRASS GIS ${major} Addons Manual pages</h2>
<!-- Generated from: /home/martinl/src/grass_addons/tools/addons/ -->
<!-- See also: https://github.com/OSGeo/grass-addons/blob/master/tools/addons/README.md -->
<!-- Generated from: /home/martinl/src/grass_addons/utils/addons/ -->
<!-- See also: https://github.com/OSGeo/grass-addons/blob/master/utils/addons/README.md -->
<table><tr><td>
<script type=\"text/javascript\" src=\"https://www.openhub.net/p/grass_gis_addons/widgets/project_factoids_stats?format=js\"></script>
Expand Down Expand Up @@ -154,7 +154,7 @@ See also log files of compilation:

module=`echo $currfile | sed 's+\.html$++g'`
echo "<li style=\"margin-left: 20px\"><a href=\"$currfile\">$module</a>: " >> index.html
${SRC}/grass-addons/tools/addons/get_page_description.py $currfile >> index.html
${SRC}/grass-addons/utils/addons/get_page_description.py $currfile >> index.html
done

year=`date +%Y`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if [ "$nup" -gt 1 ] || [ "$1" = "f" ] ; then
process 7 8
process 6 4

${ADDONS}/tools/addons/grass-addons-index.sh
${ADDONS}/utils/addons/grass-addons-index.sh
fi

exit 0
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ echo "GRASS $VERSION compilation done"
# now GRASS is prepared ############################################

#### create module overview (https://trac.osgeo.org/grass/ticket/1203)
#sh tools/module_synopsis.sh
#sh utils/module_synopsis.sh

#### generate developer stuff: pygrass docs + gunittest docs
# generate pyGRASS sphinx manual (in docs/html/libpython/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ echo "GRASS $VERSION compilation done"
# now GRASS is prepared ############################################

#### create module overview (https://trac.osgeo.org/grass/ticket/1203)
#sh tools/module_synopsis.sh
#sh utils/module_synopsis.sh

#### generate developer stuff: pygrass docs + gunittest docs
# generate pyGRASS sphinx manual (in docs/html/libpython/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ echo "GRASS $VERSION compilation done"
# now GRASS is prepared ############################################

#### create module overview (https://trac.osgeo.org/grass/ticket/1203)
#sh tools/module_synopsis.sh
#sh utils/module_synopsis.sh

#### generate developer stuff: pygrass docs + gunittest docs
# generate pyGRASS sphinx manual (in docs/html/libpython/)
Expand Down Expand Up @@ -272,8 +272,8 @@ sh ~/cronjobs/grass-addons-fetch-xml.sh $TARGETMAIN/addons/
############################################
# create sitemaps to expand the hugo sitemap

python3 $HOME/src/grass$GMAJOR-addons/tools/create_manuals_sitemap.py --dir=/var/www/code_and_data/grass$GMAJOR$GMINOR/manuals/ --url=https://grass.osgeo.org/grass$GMAJOR$GMINOR/manuals/ -o
python3 $HOME/src/grass$GMAJOR-addons/tools/create_manuals_sitemap.py --dir=/var/www/code_and_data/grass$GMAJOR$GMINOR/manuals/addons/ --url=https://grass.osgeo.org/grass$GMAJOR$GMINOR/manuals/addons/ -o
python3 $HOME/src/grass$GMAJOR-addons/utils/create_manuals_sitemap.py --dir=/var/www/code_and_data/grass$GMAJOR$GMINOR/manuals/ --url=https://grass.osgeo.org/grass$GMAJOR$GMINOR/manuals/ -o
python3 $HOME/src/grass$GMAJOR-addons/utils/create_manuals_sitemap.py --dir=/var/www/code_and_data/grass$GMAJOR$GMINOR/manuals/addons/ --url=https://grass.osgeo.org/grass$GMAJOR$GMINOR/manuals/addons/ -o

############################################
# cleanup
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ echo "GRASS $VERSION compilation done"
# now GRASS is prepared ############################################

#### create module overview (https://trac.osgeo.org/grass/ticket/1203)
#sh tools/module_synopsis.sh
#sh utils/module_synopsis.sh

#### generate developer stuff: pygrass docs + gunittest docs
# generate pyGRASS sphinx manual (in docs/html/libpython/)
Expand Down Expand Up @@ -286,8 +286,8 @@ cd $GRASSBUILDDIR
############################################
# create sitemaps to expand the hugo sitemap

python3 $HOME/src/grass$GMAJOR-addons/tools/create_manuals_sitemap.py --dir=/var/www/code_and_data/grass$GMAJOR$GMINOR/manuals/ --url=https://grass.osgeo.org/grass$GMAJOR$GMINOR/manuals/ -o
# python3 $HOME/src/grass$GMAJOR-addons/tools/create_manuals_sitemap.py --dir=/var/www/code_and_data/grass$GMAJOR$GMINOR/manuals/addons/ --url=https://grass.osgeo.org/grass$GMAJOR$GMINOR/manuals/addons/ -o
python3 $HOME/src/grass$GMAJOR-addons/utils/create_manuals_sitemap.py --dir=/var/www/code_and_data/grass$GMAJOR$GMINOR/manuals/ --url=https://grass.osgeo.org/grass$GMAJOR$GMINOR/manuals/ -o
# python3 $HOME/src/grass$GMAJOR-addons/utils/create_manuals_sitemap.py --dir=/var/www/code_and_data/grass$GMAJOR$GMINOR/manuals/addons/ --url=https://grass.osgeo.org/grass$GMAJOR$GMINOR/manuals/addons/ -o

############################################
# cleanup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# crontab entries
# see: https://github.com/OSGeo/grass-addons/tree/master/tools/cronjobs_osgeo_lxd
# see: https://github.com/OSGeo/grass-addons/tree/master/utils/cronjobs_osgeo_lxd/

# add GRASS GIS build jobs here and then run on `grasslxd`server:
# crontab $HOME/cronjobs/cron_job_list_grass && crontab -l
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

# PURPOSE: Extracts page one line descriptions for index.html of GRASS GIS Addons
#
# cloned from https://github.com/OSGeo/grass-addons/blob/master/tools/addons/get_page_description.py
#
# AUTHORS: Martin Landa (Bash version)
# Vaclav Petras (Python version)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/sh

# cloned from https://github.com/OSGeo/grass-addons/blob/master/tools/addons/grass-addons-publish.sh
#
# This script copies built addons manual pages from the winGRASS build server
# To be run on publishing server (grasslxd server)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
# updated for GRASS GIS Addons by Markus Neteler and Martin Landa, 2013
# updated for new CMS path MN 8/2015
# display module prefix by ML 8/2015
# cloned from https://github.com/OSGeo/grass-addons/blob/master/tools/addons/grass-addons-index.sh
# and updated for GRASS GIS 7 only Addons compilation on grasslxd server by Markus Neteler, 6/2020
# updated for GRASS GIS 7 only Addons compilation on grasslxd server by Markus Neteler, 6/2020

# Important: keep log links in sync at https://grass.osgeo.org/download/addons/

Expand Down Expand Up @@ -112,7 +111,7 @@ generate () {
<h2>GRASS GIS ${major} Addons Manual pages</h2>
<!-- Generated from: grasslxd (on osgeo7): ~/cronjobs/grass-addons-index.sh -->
<!-- See also: https://github.com/OSGeo/grass-addons/blob/master/tools/cronjobs_osgeo_lxd/README.md -->
<!-- See also: https://github.com/OSGeo/grass-addons/blob/master/utils/cronjobs_osgeo_lxd/README.md -->
<table><tr><td>
<script type=\"text/javascript\" src=\"https://www.openhub.net/p/grass_gis_addons/widgets/project_factoids_stats?format=js\"></script>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 35e3a12

Please sign in to comment.