#!/bin/bash -e # DO NOT EDIT - This file is being maintained by Chef # Note: the script must return 0 only when new updates have been applied. date "+%c === Checking for new versions of Nominatim" cd <%= @srcdir %> git fetch origin if git diff --exit-code origin/<%= node[:nominatim][:revision] %> >/dev/null; then # signal that there are no new updates exit 99 fi git merge origin/<%= node[:nominatim][:revision] %> git submodule update cd <%= @builddir %> cmake . make