blob: 9455ad4e2080b5629a64199d928b47e9996f6be8 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for predicting trybots.
APPNAME=predict
DESCRIPTION="Predict Server for Swarming Bots"
SYSTEMD=${APPNAME}.service
set -x -e
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="fakeroot install -D --verbose --backup=none --group=root --owner=root"
INSTALL_DIR="fakeroot install -d --verbose --backup=none --group=root --owner=root"
${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service
${INSTALL} --mode=755 -T ${GOPATH}/bin/predict ${ROOT}/usr/local/bin/predict
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/templates
${INSTALL} --mode=644 ./templates/* ${ROOT}/usr/local/share/${APPNAME}/templates
}
source ../bash/release.sh