summaryrefslogtreecommitdiff
path: root/src/xbs
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-07-05 02:10:21 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-07-05 18:08:41 -0400
commitac6c975cde77b1fa8f3a8df2f9c966b3dc5fc90c (patch)
tree56f8a52bd5ac62f2240c46305f8baa425db30073 /src/xbs
parent8435815a7690830dece329ac9a71b1da04f4ba38 (diff)
xbs: create separate release-client and release-server sub-commands
Diffstat (limited to 'src/xbs')
-rwxr-xr-xsrc/xbs/xbs30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/xbs/xbs b/src/xbs/xbs
index ea762fb..a81d37c 100755
--- a/src/xbs/xbs
+++ b/src/xbs/xbs
@@ -54,8 +54,10 @@ usage() {
'Are there uncommited changes in `.`?'
flag 'download' \
'Download or update the tree'
- flag "release $(_ 'REPO ARCH')" \
- 'Release `.`'
+ flag "release-client $(_ 'REPO ARCH')" \
+ 'Release `.` (for developer boxes)'
+ flag "release-server $(_ 'REPO ARCH')" \
+ 'Release `.` (for server boxes)'
flag "unrelease $(_ 'PKGBASE REPO ARCH')" \
'Unrelease a pkgbase'
flag "move $(_ 'FROMREPO TOREPO PKGBASE')" \
@@ -77,16 +79,20 @@ download() {
"$HELPER" download "$@"
}
-release() {
- if [[ ! -f PKGBUILD ]]; then
- error 'PKGBUILD not found'
- exit 1
- fi
+release-client() {
if ! status; then
error 'You have not committed your changes yet!'
exit 1
fi
- "$HELPER" release "$@"
+ "$HELPER" release-client "$@"
+}
+
+release-server() {
+ if [[ ! -f PKGBUILD ]]; then
+ error 'PKGBUILD not found'
+ exit 1
+ fi
+ "$HELPER" release-server "$@"
}
unrelease() {
@@ -142,15 +148,15 @@ main() {
case "$cmd" in
status|download)
[[ $# -eq 0 ]] || errusage 'bad number of argments'
- $cmd "$@"
+ "$cmd" "$@"
;;
- release)
+ release-client|release-server)
[[ $# -eq 2 ]] || errusage 'bad number of argments'
- $cmd "$@"
+ "$cmd" "$@"
;;
move|unrelease|releasepath)
[[ $# -eq 3 ]] || errusage 'bad number of argments'
- $cmd "$@"
+ "$cmd" "$@"
;;
*) errusage 'unknown command: %s' "$cmd";;
esac