| #!/bin/bash |
| # Builds and uploads a debian package for powercycle. |
| APPNAME=powercycle |
| DESCRIPTION="Package powercycle cli and config file." |
| |
| 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=755 -T ${GOPATH}/bin/powercycle-cli ${ROOT}/usr/local/bin/powercycle |
| ${INSTALL} --mode=644 -T ./sys/powercycle.yaml ${ROOT}/etc/powercycle.yaml |
| } |
| |
| source ../bash/release.sh |