diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-05 02:10:21 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-05 18:08:41 -0400 |
commit | ac6c975cde77b1fa8f3a8df2f9c966b3dc5fc90c (patch) | |
tree | 56f8a52bd5ac62f2240c46305f8baa425db30073 /src/xbs-abs/helper-abs | |
parent | 8435815a7690830dece329ac9a71b1da04f4ba38 (diff) |
xbs: create separate release-client and release-server sub-commands
Diffstat (limited to 'src/xbs-abs/helper-abs')
-rwxr-xr-x | src/xbs-abs/helper-abs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/xbs-abs/helper-abs b/src/xbs-abs/helper-abs index 88f572a..6c57803 100755 --- a/src/xbs-abs/helper-abs +++ b/src/xbs-abs/helper-abs @@ -93,13 +93,13 @@ download() { done } -release() { +release-client() { local repo=$1 local arch=$2 + # Hack to use arch_svn as 'svn' in external scripts local tmpdir="$(mktemp -dt "xbs-abs-release.XXXXXXXXXX")" trap "$(printf 'rm -rf -- %q' "$tmpdir")" EXIT - printf '%s\n' \ '#!/bin/bash' \ "$(declare -p SVNUSER 2>/dev/null)" \ @@ -107,8 +107,15 @@ release() { 'arch_svn "$@"' \ > "$tmpdir/svn" chmod 755 "$tmpdir/svn" + export PATH="$tmpdir:$PATH" + + "${0}.d/archrelease" -f "${repo}-${arch}" + "${0}.d/commitpkg" "${repo}" "${arch}" +} - PATH="$tmpdir:$PATH" "${0}.d/archrelease" -f "${repo}-${arch}" +release-server() { + # Do nothing + : } unrelease() { @@ -185,6 +192,6 @@ releasepath() { } case "$1" in - status|download|release|unrelease|move|releasepath) "$@";; + status|download|release-client|release-server|unrelease|move|releasepath) "$@";; *) exit 127;; esac |