blob: 97994adcaa423befe9ef4162fe4506edd7a03921 [file] [log] [blame]
#!/bin/bash
APPNAME=fiddle
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 ${APPNAME}/Dockerfile ${ROOT}/Dockerfile
${INSTALL} --mode=755 -T ${GOPATH}/bin/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME}
${INSTALL_DIR} --mode=755 ${ROOT}/etc/${APPNAME}/source
${INSTALL} --mode=644 ./source/* ${ROOT}/etc/${APPNAME}/source
${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/${APPNAME}/dist
${INSTALL} --mode=644 ./dist/* ${ROOT}/usr/local/share/${APPNAME}/dist
}
source ../bash/docker_build.sh