View build.sh
#!/usr/bin/env bash
: '
Script to build valhalla against mason deps
Intended to be run inside a valhalla checkout of https://github.com/valhalla/valhalla/pull/1341
'
View Dockerfile.mbgl
FROM ubuntu:xenial-20171006
# docker build -t mbgl -f Dockerfile.mbgl .
# docker run -it mbgl bash
# install && clean up
RUN apt-get update -qq && \
apt-get install -y curl && \
curl https://nodejs.org/dist/v4.8.7/node-v4.8.7-linux-x64.tar.gz | tar zxC /usr/local --strip-components=1
View install-pcp.sh
#!/bin/sh
set -eu
if [ "$(id -u)" != "0" ]; then
echo "Sorry, you are not root."
exit 1
fi
if !(type pcp 2>/dev/null;) then
View run.sh
#!/bin/bash
set -eu
set -o pipefail
function echo_color { >&2 echo -e "\033[1m\033[36m* $1\033[0m"; }
function echo_color_substep { >&2 echo -e "\033[1m\033[32m* $1\033[0m"; }
export SHOW_COMPILE_FLAGS=false
View linux.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View osx.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View osrm-backend-warnings.txt
This file has been truncated, but you can view the full file.
CMake Warning at CMakeLists.txt:117 (message):
GNU gold linker isn't available.
In file included from /Users/dane/projects/osrm-backend/src/storage/storage.cpp:3:
/Users/dane/projects/osrm-backend/include/storage/io.hpp:69:12: warning: implicit conversion loses integer precision: 'streamoff' (aka 'long long') to 'std::uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]
return length;
~~~~~~ ^~~~~~
/Users/dane/projects/osrm-backend/include/storage/io.hpp:77:61: warning: implicit conversion changes signedness: 'unsigned long' to 'streamsize' (aka 'long') [-Wsign-conversion]
View install.sh
mkdir ./mason
curl -sSfL https://github.com/mapbox/mason/archive/v0.15.0.tar.gz | tar --gunzip --extract --strip-components=1 --exclude="*md" --exclude="test*" --directory=./mason
OSMIUM_VERSION="1.7.1"
./mason/mason install osmium-tool ${OSMIUM_VERSION}
export PATH=$(./mason/mason prefix osmium-tool ${OSMIUM_VERSION})/bin:${PATH}
export MANPATH=$(./mason/mason prefix osmium-tool ${OSMIUM_VERSION})/share/man:${MANPATH}
osmium help extract
osmium
View catch.hpp.diff
diff --git a/test/catch.hpp b/test/catch.hpp
index 391c7ab..7f96d25 100644
--- a/test/catch.hpp
+++ b/test/catch.hpp
@@ -5140,8 +5140,6 @@ namespace Catch {
} // namespace Catch
-#if defined ( CATCH_PLATFORM_WINDOWS ) /////////////////////////////////////////
-
View json_util.diff
diff --git a/include/util/json_util.hpp b/include/util/json_util.hpp
index 00f4501..32a1bd7 100644
--- a/include/util/json_util.hpp
+++ b/include/util/json_util.hpp
@@ -36,28 +36,6 @@ template <typename... Args> Array make_array(Args... args)
return a;
}
-template <typename T> Array make_array(const std::vector<T> &vector)
-{