Skip to content

Commit 6d8caa9

Browse files
authored
Merge pull request #273 from pgRouting/develop
Updating workshop to New Zeland 2025
2 parents 1dacdb5 + 6114f86 commit 6d8caa9

180 files changed

Lines changed: 7704 additions & 7663 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/scripts/update_locale.sh

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
# ------------------------------------------------------------------------------
32
# /*PGR-GNU*****************************************************************
43
# File: update_locale.sh
54
# Copyright (c) 2021 pgRouting developers
@@ -17,32 +16,34 @@
1716
# along with this program; if not, write to the Free Software
1817
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1918
# ********************************************************************PGR-GNU*/
20-
# ------------------------------------------------------------------------------
2119

2220
DIR=$(git rev-parse --show-toplevel)
2321

2422
pushd "${DIR}" > /dev/null || exit 1
2523

2624
mkdir -p build
2725
pushd build > /dev/null || exit 1
28-
cmake -DLOCALE=ON ..
26+
cmake -DBUILD_HTML=OFF -DBUILD_LOCALE=ON ..
2927

3028
make locale
3129
popd > /dev/null || exit 1
3230

3331
# List all the files that needs to be committed in build/docs/locale_changes.txt
3432
awk '/^Update|^Create/{print $2}' build/docs/locale_changes.txt > build/docs/locale_changes_po.txt # .po files
3533
cp build/docs/locale_changes_po.txt build/docs/locale_changes_po_pot.txt
36-
perl -ne '/\/en\// && print' build/docs/locale_changes_po.txt | \
34+
35+
if [ -s build/docs/locale_changes_po.txt ]; then
36+
37+
perl -ne '/\/en\// && print' build/docs/locale_changes_po.txt | \
3738
perl -pe 's/(.*)en\/LC_MESSAGES(.*)/$1pot$2t/' >> build/docs/locale_changes_po_pot.txt # .pot files
3839

39-
# Do not create empty translation files
40-
git status locale/es --porcelain | awk 'match($1, "?"){print $2}' | xargs -r rm -rf
41-
git status locale/ja --porcelain | awk 'match($1, "?"){print $2}' | xargs -r rm -rf
40+
fi
4241

4342
# Remove obsolete entries #~ from .po files
44-
bash .github/scripts/remove_obsolete_entries.sh
43+
find locale -type f -name '*.po' -exec sh -c '
44+
msgattrib --no-obsolete -o "$1" "$1"
45+
' sh {} \;
4546

46-
cat build/docs/locale_changes_po_pot.txt | xargs -I {} sh -c "(ls {} >> /dev/null 2>&1 && git add {} )"
47+
while read -r f; do git add "$f"; done < build/docs/locale_changes_po_pot.txt
4748

4849
popd > /dev/null || exit 1

.github/workflows/locale.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v5
25+
uses: actions/checkout@v6
2626
with:
2727
fetch-depth: 0
2828

@@ -55,6 +55,7 @@ jobs:
5555
run: |
5656
sudo apt-get update
5757
sudo apt-get install -y osm2pgrouting \
58+
gettext \
5859
postgresql-${PGVER}-postgis-${PGIS} \
5960
postgresql-${PGVER}-postgis-${PGIS}-scripts \
6061
postgresql-${PGVER}-pgrouting
@@ -74,8 +75,6 @@ jobs:
7475
sudo -u postgres psql -c 'CREATE ROLE "user" SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN PASSWORD $$user$$;' -d setup
7576
echo :5432:*:user:user >> .pgpass
7677
mkdir build
77-
cd build
78-
cmake -DLOCALE=ON ..
7978
env:
8079
POSTGRES_HOST: localhost
8180
POSTGRES_PORT: 5432

.github/workflows/ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212

1313
steps:
14-
- uses: actions/checkout@v5
14+
- uses: actions/checkout@v6
1515

1616
- name: Get postgres version
1717
run: |

.github/workflows/website.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v5
20+
uses: actions/checkout@v6
2121
with:
2222
fetch-depth: 0
2323

@@ -83,7 +83,7 @@ jobs:
8383
- name: Build
8484
run: |
8585
cd build
86-
make -j 4
86+
make doc
8787
8888
- name: Initialize mandatory git config
8989
run: |
@@ -95,7 +95,7 @@ jobs:
9595
if [[ "${{ env.BRANCH }}" == "develop" ]]; then
9696
FOLDER_NAME="dev"
9797
elif [[ "${{ env.BRANCH }}" == "main" ]]; then
98-
FOLDER_NAME="3.0"
98+
FOLDER_NAME="3.1"
9999
fi
100100
git checkout -f origin/gh-pages
101101
git checkout -b gh-pages

.tx/config

Lines changed: 0 additions & 159 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 26 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
1616
#---------------------------------------------
1717
# Setting the version number
1818
#---------------------------------------------
19-
set(PGR_WORKSHOP_CITY "Belém")
19+
set(PGR_WORKSHOP_CITY "Auckland")
2020
set(WORKSHOP_AREA "FOSS4G ${PGR_WORKSHOP_CITY}")
21-
set(COPYRIGHT "2010-2024 pgRouting Developers")
21+
set(COPYRIGHT "2010-2025 pgRouting Developers")
2222
set(PGR_WORKSHOP_VERSION_MAJOR "3")
23-
set(PGR_WORKSHOP_VERSION_MINOR "0")
24-
set(PGR_WORKSHOP_VERSION_PATCH "1")
25-
set(PGR_WORKSHOP_VERSION_DEV "")
23+
set(PGR_WORKSHOP_VERSION_MINOR "1")
24+
set(PGR_WORKSHOP_VERSION_PATCH "0")
25+
set(PGR_WORKSHOP_VERSION_DEV "-dev")
2626
set(PGR_WORKSHOP_VERSION "${PGR_WORKSHOP_VERSION_MAJOR}.${PGR_WORKSHOP_VERSION_MINOR}")
2727
set(PGR_WORKSHOP_RELEASE "${PGR_WORKSHOP_VERSION_MAJOR}.${PGR_WORKSHOP_VERSION_MINOR}.${PGR_WORKSHOP_VERSION_PATCH}${PGR_WORKSHOP_VERSION_DEV}")
2828
set(PGR_WORKSHOP_NAME "pgRouting workshop")
@@ -45,53 +45,47 @@ option(PGR_WORKSHOP_VERBOSE_DEBUG
4545
#---------------------------------------------
4646
# CONFIGURATION
4747
#---------------------------------------------
48-
set(PGR_WORKSHOP_CITY_FILE "BELEM_BR")
48+
set(PGR_WORKSHOP_CITY_FILE "AUCKLAND_NZ")
4949

5050
# https://github.com/OSGeo/OSGeoLive/blob/master/bin/install_osm.sh
5151
# around line 117
52-
set(PGR_WORKSHOP_CITY_BBOX "-48.52,-1.49,-48.4,-1.36")
52+
set(PGR_WORKSHOP_CITY_BBOX "-36.8798,174.8,-36.8344,174.72")
5353

5454
# Make it smaller
55-
set(PGR_WORKSHOP_LITTLE_NET_BBOX "-48.52,-1.46,-48.45,-1.41")
55+
set(PGR_WORKSHOP_LITTLE_NET_BBOX "174.775,-36.855,174.76,-36.84")
5656

5757
# Use git blame to get the date when the line was changed
58-
set(PGR_WORKSHOP_DOWNLOAD_DIR "workshop-2024")
59-
set(DATE_OF_DATA "Sep 2024")
58+
set(PGR_WORKSHOP_DOWNLOAD_DIR "workshop-2025")
59+
set(DATE_OF_DATA "Jun 2025")
6060

6161
if (WORKSHOP_DEBUG)
6262
message(STATUS "WORKSHOP_CITY_FILE=${WORKSHOP_CITY_FILE}")
6363
endif()
6464

65-
set(OSMID_1 "10982869752")
66-
set(OSMID_2 "11818739588")
67-
set(OSMID_3 "491465035")
68-
set(OSMID_4 "1069202329")
69-
set(OSMID_5 "5661895682")
70-
71-
set(LAT1 "-1.422066")
72-
set(LON1 "-48.45665")
73-
65+
set(OSMID_1 "9451619540")
66+
set(OSMID_2 "60662678")
67+
set(OSMID_3 "11045827672")
68+
set(OSMID_4 "9452115611")
69+
set(OSMID_5 "11045833969")
7470

7571
# 3->1: routes for vehicles with penalty & no penalty must be different
76-
set(PLACE_1 "Hangar Convention Center")
77-
set(PLACE_2 "Instituto Federal do Pará, Campus Belém")
78-
set(PLACE_3 "Palacete Bolonha")
79-
set(PLACE_4 "Forte do Castelo")
80-
set(PLACE_5 "Estação das Docas")
81-
72+
set(PLACE_1 "Auckland University of Technology")
73+
set(PLACE_2 "The Band Rotunda")
74+
set(PLACE_3 "Four Points by Sheraton")
75+
set(PLACE_4 "Sky tower")
76+
set(PLACE_5 "Emily Place Reserve")
8277

83-
set(POINT1_LAT "-1.455829")
84-
set(POINT1_LON "-48.446044")
85-
set(POINT2_LAT "-1.453448")
86-
set(POINT2_LON "-48.447142")
8778

88-
# by chapters
8979
set(CH7_PLACE_1 ${PLACE_5})
80+
set(CH7_ID_1 ${OSMID_5})
9081
set(CH7_PLACE_2 ${PLACE_1})
91-
set(CH7_OSMID_1 ${OSMID_5})
92-
set(CH7_OSMID_2 ${OSMID_1})
82+
set(CH7_ID_2 ${OSMID_1})
9383

84+
set(POINT1_LAT "-36.850329")
85+
set(POINT1_LON "174.763094")
9486

87+
set(POINT2_LAT "-36.853675")
88+
set(POINT2_LON "174.764448")
9589

9690
#---------------------------------------------
9791
# minimum versions

REQUIREMENTS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ Sphinx>4.0.0
22
sphinx_bootstrap_theme>=0.4
33
sphinx-intl
44
sphinx-collapse
5+
sphinx-copybutton

0 commit comments

Comments
 (0)