#!/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 git fetch origin -tf if git diff --exit-code <%= node[:nominatim][:revision] %> >/dev/null; then # signal that there are no new updates exit 99 fi git checkout --detach <%= node[:nominatim][:revision] %> git submodule update cd <%= @builddir %> cmake -D WITH_LUAJIT=ON . make