mirror of
https://github.com/google/brotli.git
synced 2024-11-10 06:00:07 +00:00
378485b097
There are currently 3 ways to build: * Easy: `./configure; make` * Simple: use Bazel * Portable: use premake5 to generate XCode / MSVS projects
20 lines
331 B
Bash
Executable File
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
|