1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/bash PREFIX=$1 PLATFORM=$2 shift shift VARIABLES="#!/bin/bash ## variables CONFIG_MBGL_PREFIX=$PREFIX CONFIG_MBGL_PLATFORM=$PLATFORM CONFIG_MBGL_LDFLAGS=\"$@\" " echo "$VARIABLES" | cat - utils/mbgl-config/mbgl-config.template.sh \ > $PREFIX/bin/mbgl-config chmod 755 $PREFIX/bin/mbgl-config