summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-02 21:18:19 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-02 21:18:19 -0600
commit3631d01d01391ced593ecb7232f1a102ea28d63e (patch)
tree07e7215f7b6e463f1881ed2b2b75fa8619190a40
parentc173dfe7e5146b85aa643cfde2c525d4c1688f21 (diff)
add pbs-upload
-rwxr-xr-xpbs-upload35
1 files changed, 35 insertions, 0 deletions
diff --git a/pbs-upload b/pbs-upload
new file mode 100755
index 0000000..f682b8d
--- /dev/null
+++ b/pbs-upload
@@ -0,0 +1,35 @@
+#!/bin/bash -euE
+
+. $(librelib conf.sh)
+
+cmd=${0##*/}
+usage() {
+ echo "Usage: $cmd [-h]"
+ echo 'Commits to a package (run from the package directory).'
+ echo ''
+ echo 'Downloads or updates the PBS tree.'
+ echo ''
+ echo 'Options:'
+ echo ' -h Show this message'
+}
+
+main() {
+ while getopts 'h' arg; do
+ case $arg in
+ h) usage; return 0;;
+ *) usage >&2; return 1;;
+ esac
+ done
+ if [[ $# -gt 0 ]]; then
+ usage >&2
+ return 1
+ fi
+
+ load_files abslibre
+ check_vars abslibre WORKDIR
+
+ cd "$WORKDIR/pbs"
+ git push --all
+}
+
+main "$@"