blob: b98d218e233861fdc54e311de5bb05fdc09e980d [file] [log] [blame]
#!/bin/bash
APPNAME=android_compile_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/android_compile_fe/Dockerfile ${ROOT}/Dockerfile
${INSTALL} --mode=755 -T ${GOPATH}/bin/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME}
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/res/img
${INSTALL} --mode=644 ./res/img/* ${ROOT}/usr/local/share/${APPNAME}/res/img
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/res/js
${INSTALL} --mode=644 -T ./res/js/core.js ${ROOT}/usr/local/share/${APPNAME}/res/js/core.js
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/templates
${INSTALL} --mode=644 ./templates/* ${ROOT}/usr/local/share/${APPNAME}/templates
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/res/img
${INSTALL} --mode=644 -T ./res/vul/elements.html ${ROOT}/usr/local/share/${APPNAME}/res/vul/elements.html
}
source ../bash/docker_build.sh