Simple package script for building distributions.

pull/17/head
Todd Persen 2013-10-22 10:33:20 -04:00
parent 066f741121
commit 1ef1c999ea
1 changed files with 17 additions and 0 deletions

17
package.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
if [ -e build ]; then
rm -rf build/*
else
mkdir build
fi
go build src/server/server.go
mv server build/influxdb
cp config.json.sample build/config.json
mkdir build/admin
touch build/admin/index.html
tar -czf influxdb-`cat VERSION`.tar.gz build/*