| #!/bin/bash |
| # Builds and uploads a debian package for traceserver. |
| APPNAME="traceserverd" |
| SYSTEMD="gold-traceserver.service pdfium-gold-traceserver.service chromevr-gold-traceserver.service" |
| DESCRIPTION="Traceserver datastores for Gold, Pdfium-Gold and ChromeVR-Gold traces." |
| |
| 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/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=644 -T ./sys/chromevr-gold-traceserver.service ${ROOT}/etc/systemd/system/chromevr-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} --mode=755 -T ${GOPATH}/bin/traceserver ${ROOT}/usr/local/bin/chromevr_gold_traceserver |
| ${INSTALL_DIR} --mode=777 ${ROOT}/mnt/pd0/gold/traceserver |
| ${INSTALL_DIR} --mode=777 ${ROOT}/mnt/pd0/pdfium_gold/traceserver |
| ${INSTALL_DIR} --mode=777 ${ROOT}/mnt/pd0/chromevr_gold/traceserver |
| } |
| |
| source ../bash/release.sh |