ledisdb/build_config.sh

16 lines
283 B
Bash
Raw Normal View History

2014-07-26 05:22:09 +04:00
#!/bin/sh
OUTPUT=$1
PREFIX=$2
if test -z "$OUTPUT" || test -z "$PREFIX"; then
echo "usage: $0 <output-filename> <directory_prefix>" >&2
exit 1
fi
# Delete existing output, if it exists
rm -f $OUTPUT
touch $OUTPUT
source ./dev.sh
echo "GO_BUILD_TAGS=$GO_BUILD_TAGS" >> $OUTPUT