From 652c616048745cf78df656536fefed18e595f6d9 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Tue, 28 Oct 2014 13:42:23 -0400 Subject: build simple, working mbgl-config script from gyp --- utils/mbgl-config/build.sh | 17 ++++++ utils/mbgl-config/dummy.sh | 3 -- utils/mbgl-config/mbgl-config.template.sh | 87 ++++--------------------------- 3 files changed, 27 insertions(+), 80 deletions(-) create mode 100755 utils/mbgl-config/build.sh delete mode 100755 utils/mbgl-config/dummy.sh (limited to 'utils/mbgl-config') diff --git a/utils/mbgl-config/build.sh b/utils/mbgl-config/build.sh new file mode 100755 index 0000000000..4fd4a93cfc --- /dev/null +++ b/utils/mbgl-config/build.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +PREFIX=$1 +PLATFORM=$2 + +VARIABLES="#!/bin/bash + +## variables + +CONFIG_MBGL_PREFIX=$PREFIX +CONFIG_MBGL_PLATFORM=$PLATFORM +" + +echo "$VARIABLES" | cat - utils/mbgl-config/mbgl-config.template.sh \ + > $PREFIX/bin/mbgl-config + +chmod 755 $PREFIX/bin/mbgl-config diff --git a/utils/mbgl-config/dummy.sh b/utils/mbgl-config/dummy.sh deleted file mode 100755 index 04685b2c14..0000000000 --- a/utils/mbgl-config/dummy.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -echo "mbgl-config DUMMY $PLATFORM $PREFIX"; diff --git a/utils/mbgl-config/mbgl-config.template.sh b/utils/mbgl-config/mbgl-config.template.sh index 8ca8cde6b0..87f4d50e1f 100644 --- a/utils/mbgl-config/mbgl-config.template.sh +++ b/utils/mbgl-config/mbgl-config.template.sh @@ -1,29 +1,18 @@ - ## program below usage() { cat <