blob: 0f83493adcfc9239bfd9218f5e9659f6f42729ad [file] [log] [blame]
#!/bin/bash
APPNAME=autoroll-fe
set -x -e
# Copy files into the right locations in ${ROOT}.
copy_release_files()
{
INSTALL="install -D --verbose --backup=none"
INSTALL_DIR="install -d --verbose --backup=none"
${INSTALL} --mode=644 -T ./go/autoroll-fe/Dockerfile ${ROOT}/Dockerfile
${INSTALL} --mode=755 -T ${GOPATH}/bin/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME}
${INSTALL} --mode=644 -T ./res/js/core.js ${ROOT}/usr/local/share/autoroll/res/js/core.js
${INSTALL} --mode=644 -T ./res/vul/elements.html ${ROOT}/usr/local/share/autoroll/res/vul/elements.html
cp -r ./templates ${ROOT}/usr/local/share/autoroll/templates
chmod 777 ${ROOT}/usr/local/share/autoroll/templates
chmod 644 ${ROOT}/usr/local/share/autoroll/templates/*
}
source ../bash/docker_build.sh