blob: bac2922f1905719bdcd3fe65bd24a547f26e22ab [file]
#!/bin/bash
# Builds and uploads a debian package for status.
APPNAME=statusd
DESCRIPTION="Server which provides status information about Skia."
SYSTEMD=${APPNAME}.service
# 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=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system/${APPNAME}.service
${INSTALL} --mode=755 -T ${GOPATH}/bin/status ${ROOT}/usr/local/bin/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_workdir
}
source ../bash/release.sh