blob: 50de4b057d3cb426e94f5a1c2902b9a0fd2f5156 [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for traceserver.
APPNAME="traceserverd"
SYSTEMD="gold-traceserver.service pdfium-gold-traceserver.service"
DESCRIPTION="Traceserver datastores for Gold and Pdfium-Gold traces."
set -x -e
# 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/gold-traceserver.service ${ROOT}/etc/systemd/system/gold-traceserver.service
${INSTALL} --mode=644 -T ./sys/pdfium-gold-traceserver.service ${ROOT}/etc/systemd/system/pdfium-gold-traceserver.service
${INSTALL} --mode=755 -T ${GOPATH}/bin/traceserver ${ROOT}/usr/local/bin/gold_traceserver
${INSTALL} --mode=755 -T ${GOPATH}/bin/traceserver ${ROOT}/usr/local/bin/pdfium_gold_traceserver
${INSTALL_DIR} --mode=777 ${ROOT}/mnt/pd0/gold/traceserver
${INSTALL_DIR} --mode=777 ${ROOT}/mnt/pd0/pdfium_gold/traceserver
}
source ../bash/release.sh