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