diff options
author | Florian Pritz <bluewind@server-speed.net> | 2011-05-16 20:11:59 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-05-18 18:28:05 +0200 |
commit | a1a6a8eaca9ae2f57b9bf1f053dbb4295ff38266 (patch) | |
tree | 501826a4a328e17d8f90f1f287a6aad9555a7926 | |
parent | 6d4367de350bedc407534ee1a80e177604789371 (diff) | |
download | devtools-a1a6a8eaca9ae2f57b9bf1f053dbb4295ff38266.tar.xz |
commitpkg: add -a option to upload only one arch
-a i686 uploads only i686 packages and ignore everything else
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-x | commitpkg | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -54,7 +54,7 @@ pkgbase=${pkgbase:-$pkgname} case "$cmd" in commitpkg) if [ $# -eq 0 ]; then - abort 'usage: commitpkg <reponame> [-l limit] [commit message]' + abort 'usage: commitpkg <reponame> [-l limit] [-a arch] [commit message]' fi repo="$1" shift @@ -63,7 +63,7 @@ case "$cmd" in repo="${cmd%pkg}" ;; *) - abort 'usage: commitpkg <reponame> [-l limit] [commit message]' + abort 'usage: commitpkg <reponame> [-l limit] [-a arch] [commit message]' ;; esac @@ -103,6 +103,11 @@ if [ "$1" = '-l' ]; then shift 2 fi +if [ "$1" = "-a" ]; then + commit_arch=$2 + shift 2 +fi + echo -n 'committing changes to trunk...' if [ -n "$1" ]; then svn commit -q -m "upgpkg: $pkgbase $pkgver-$pkgrel @@ -115,6 +120,11 @@ echo 'done' declare -a uploads for _arch in ${arch[@]}; do + if [ -n "$commit_arch" ] && [ "${_arch}" != "$commit_arch" ]; then + echo "skipping ${_arch}" + continue + fi + for _pkgname in ${pkgname[@]}; do fullver=$(get_full_version ${epoch:-0} $pkgver $pkgrel) pkgfile=$(getpkgfile "$_pkgname-$fullver-${_arch}".pkg.tar.?z 2>/dev/null) |