brotli/configure

20 lines
341 B
Plaintext
Raw Normal View History

#!/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