Index: push/build_pulld_release |
diff --git a/push/build_pulld_release b/push/build_pulld_release |
new file mode 100755 |
index 0000000000000000000000000000000000000000..e4dd9a19085fb247a7fececa67fa18e48fdd130e |
--- /dev/null |
+++ b/push/build_pulld_release |
@@ -0,0 +1,17 @@ |
+#!/bin/bash |
+# Builds and uploads a debian package for pulld. |
+APPNAME=pulld |
+SYSTEMD=${APPNAME}.service |
+DESCRIPTION="Application to pull updates for applications." |
+ |
+# 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/${APPNAME}.service |
+${INSTALL} --mode=755 -T ${GOPATH}/bin/${APPNAME} ${ROOT}/usr/local/bin/${APPNAME} |
+${INSTALL_DIR} --mode=777 ${ROOT}/var/${APPNAME} |
+} |
+ |
+source ../bash/release.sh |