mirror of
https://github.com/google/brotli.git
synced 2024-11-26 05:20:04 +00:00
b32cefe160
* rename build -> buildfiles to avoid clashing with BUILD * set binary mode for stdin/out in bro * convert bro to C
20 lines
341 B
Bash
Executable File
20 lines
341 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" > ./buildfiles/gmake/config.make
|
|
echo -e "version=$VERSION" >> ./buildfiles/gmake/config.make
|