blob: da8f81ce8e245fa1439ba5574381237bf62e3d4c [file] [log] [blame]
#!/bin/bash
# Builds and uploads a debian package for the Fuzzer backend.
# Prior to calling this, set $CONFIG to be the name of the configuration to build.
APPNAME=fuzzer-be-${CONFIG}
SYSTEMD="fuzzer-be.service"
DESCRIPTION="The Skia Fuzzer constantly fuzzes Skia through binary and api fuzzes. This package contains the backend, meant to run on GCE."
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/${APPNAME}.service ${ROOT}/etc/systemd/system/fuzzer-be.service
${INSTALL} --mode=755 -T ${GOPATH}/bin/fuzzer-be ${ROOT}/usr/local/bin/fuzzer-be
}
source ../bash/release.sh