brotli/configure
Eugene Kliuchnikov 378485b097 Update build system. Now libraries are produced as build artifacts.
There are currently 3 ways to build:
* Easy: `./configure; make`
* Simple: use Bazel
* Portable: use premake5 to generate XCode / MSVS projects
2016-06-16 10:52:57 +02:00

20 lines
331 B
Bash
Executable File

#!/bin/bash
PREFIX=/usr/local
VERSION=`cat tools/version.h | grep BROTLI_VERSION | grep -o \".*\"`
VERSION=${VERSION:1:${#VERSION}-2}
for i in "$@"
do
case $i in
-p=*|--prefix=*)
PREFIX="${i#*=}"
;;
esac
done
echo -e "prefix=$PREFIX" > ./build/gmake/config.make
echo -e "version=$VERSION" >> ./build/gmake/config.make