blob: 696956f7f90c24314f88af9400c3e93501a21128 [file]
#!/bin/bash
# Builds and uploads a debian package for status.
APPNAME=status
DESCRIPTION="Server which provides status information about Skia."
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="sudo install -D --verbose --backup=none --group=root --owner=root"
INSTALL_DIR="sudo install -d --verbose --backup=none --group=root --owner=root"
${INSTALL} --mode=755 -T ${GOPATH}/bin/status ${ROOT}/usr/local/bin/status
${INSTALL} --mode=644 -T ./sys/monit ${ROOT}/etc/monit/conf.d/status
${INSTALL} --mode=755 -T ./sys/init ${ROOT}/etc/init.d/status
${INSTALL} --mode=644 -T ./res/img/favicon.ico ${ROOT}/usr/local/share/status/res/img/favicon.ico
${INSTALL} --mode=644 -T ./res/js/core.js ${ROOT}/usr/local/share/status/res/js/core.js
${INSTALL} --mode=644 -T ./res/vul/elements.html ${ROOT}/usr/local/share/status/res/vul/elements.html
${INSTALL} --mode=644 -T ./templates/header.html ${ROOT}/usr/local/share/status/templates/header.html
${INSTALL} --mode=644 -T ./templates/commits.html ${ROOT}/usr/local/share/status/templates/commits.html
${INSTALL} --mode=644 -T ./templates/hosts.html ${ROOT}/usr/local/share/status/templates/hosts.html
${INSTALL} --mode=644 -T ./templates/infra.html ${ROOT}/usr/local/share/status/templates/infra.html
${INSTALL} --mode=644 -T ./templates/buildbot_dash.html ${ROOT}/usr/local/share/status/templates/buildbot_dash.html
${INSTALL_DIR} --mode=777 ${ROOT}/mnt/pd0/status_scratch
}
source ../bash/release.sh