]> git.openstreetmap.org Git - chef.git/blob - cookbooks/nominatim/templates/default/nominatim-update-source.erb
nominatim: complete rework of the setup
[chef.git] / cookbooks / nominatim / templates / default / nominatim-update-source.erb
1 #!/bin/bash -e
2
3 # DO NOT EDIT - This file is being maintained by Chef
4
5 # Note: the script must return 0 only when new updates have been applied.
6
7 date "+%c === Checking for new versions of Nominatim"
8
9 cd <%= @srcdir %>
10
11 git fetch origin
12
13 if git diff --exit-code origin/<%= node[:nominatim][:revision] %> >/dev/null; then
14   # signal that there are no new updates
15   exit 99
16 fi
17
18 git merge origin/<%= node[:nominatim][:revision] %>
19 git submodule update
20
21 cd <%= @builddir %>
22 cmake .
23 make