Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Unified Diff: push/build_pulld_release

Issue 1137873005: Create a new pulld for systemd servers. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « push/Makefile ('k') | push/go/pulld/main.go » ('j') | push/go/pulld/main.go » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « push/Makefile ('k') | push/go/pulld/main.go » ('j') | push/go/pulld/main.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698