Loading archco +6 −3 Original line number Diff line number Diff line #!/bin/bash if [ "$1" = "" ]; then echo "Usage: archco <package name> [<package name>]" if [ "$1" = '' ]; then echo 'Usage: archco <package name> [<package name>]' exit 1 fi for i in "$@"; do svn co svn+ssh://gerolde.archlinux.org/srv/svn-packages/$i done # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132 archrelease +17 −14 Original line number Diff line number Diff line #!/bin/bash if [ "$1" = "" ]; then echo "Usage: archrelease <repo>" if [ "$1" = '' ]; then echo 'Usage: archrelease <repo>' exit 1 fi if [ ! -f PKGBUILD ]; then echo "archrelease: PKGBUILD not found" echo 'archrelease: PKGBUILD not found' exit 1 fi if [ "$(basename $(readlink -f .))" != "trunk" ]; then echo "archrelease: Not in a package trunk dir" if [ "$(basename $(readlink -f .))" != 'trunk' ]; then echo 'archrelease: Not in a package trunk dir' exit 1 fi if [ "$(svn diff)" != "" ]; then echo "archrelease: You have not committed your changes yet!" echo " Please run 'upgpkg' or 'svn commit' first" if [ "$(svn diff)" != '' ]; then echo 'archrelease: You have not committed your changes yet!' echo ' Please run "svn commit" first' exit 1 fi Loading @@ -31,3 +31,6 @@ svn copy -q -r HEAD trunk repos/$1 svn commit -q -m "archrelease: copy trunk to $1" popd >/dev/null echo 'done' # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132 archrm +5 −2 Original line number Diff line number Diff line #!/bin/bash if [ "$1" = "" ]; then echo "Usage: archrm <path to checkout>" if [ "$1" = '' ]; then echo 'Usage: archrm <path to checkout>' exit 1 fi Loading @@ -11,3 +11,6 @@ fi #popd rm -rf $1 # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132 checkpkg +63 −62 Original line number Diff line number Diff line #!/bin/bash # Source makepkg.conf; fail if it is not found if [ -r "/etc/makepkg.conf" ]; then source "/etc/makepkg.conf" if [ -r '/etc/makepkg.conf' ]; then source '/etc/makepkg.conf' else echo "/etc/makepkg.conf not found!" echo '/etc/makepkg.conf not found!' exit 1 fi Loading @@ -18,13 +18,13 @@ strip_url() { } if [ ! -f PKGBUILD ]; then echo "This must be run in the directory of a built package." echo 'This must be run in the directory of a built package.' exit 1 fi source PKGBUILD if [ "$arch" == "any" ]; then CARCH="any" . PKGBUILD if [ "$arch" == 'any' ]; then CARCH='any' fi for _pkgname in ${pkgname[@]}; do Loading Loading @@ -61,7 +61,7 @@ for _pkgname in ${pkgname[@]}; do fi if [ ! -f $oldpkg ]; then if echo $pkgurl | grep "^file:///" > /dev/null 2>&1; then if echo $pkgurl | grep '^file:///' > /dev/null 2>&1; then cp `echo $pkgurl | sed 's#^file://##'` . elif [ -f $PKGDEST/$oldpkg ]; then cp $PKGDEST/$oldpkg . Loading Loading @@ -91,4 +91,5 @@ for _pkgname in ${pkgname[@]}; do fi done # vim:ft=sh:ts=4:sw=4:et: # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132 commitpkg +60 −59 Original line number Diff line number Diff line #!/bin/bash abort() { echo ${1:-"Cancelled"} echo ${1:-'Cancelled'} exit 1 } # Source makepkg.conf; fail if it is not found if [ -r "/etc/makepkg.conf" ]; then source "/etc/makepkg.conf" if [ -r '/etc/makepkg.conf' ]; then source '/etc/makepkg.conf' else abort "/etc/makepkg.conf not found!" abort '/etc/makepkg.conf not found!' fi # Source user-specific makepkg.conf overrides if [ -r ~/.makepkg.conf ]; then source ~/.makepkg.conf . ~/.makepkg.conf fi cmd=$(basename "$0") if [ ! -f PKGBUILD ]; then abort "No PKGBUILD file" abort 'No PKGBUILD file' fi source PKGBUILD . PKGBUILD pkgbase=${pkgbase:-$pkgname} # set up repo-specific opts depending on how we were called server="gerolde.archlinux.org" if [ "$cmd" == "extrapkg" ]; then repo="extra" elif [ "$cmd" == "corepkg" ]; then repo="core" elif [ "$cmd" == "testingpkg" ]; then repo="testing" elif [ "$cmd" == "communitypkg" ]; then repo="community" server="aur.archlinux.org" elif [ "$cmd" == "community-testingpkg" ]; then repo="community-testing" server="aur.archlinux.org" server='gerolde.archlinux.org' if [ "$cmd" == 'extrapkg' ]; then repo='extra' elif [ "$cmd" == 'corepkg' ]; then repo='core' elif [ "$cmd" == 'testingpkg' ]; then repo='testing' elif [ "$cmd" == 'communitypkg' ]; then repo='community' server='aur.archlinux.org' elif [ "$cmd" == 'community-testingpkg' ]; then repo='community-testing' server='aur.archlinux.org' else if [ $# -eq 0 ]; then abort "usage: commitpkg <reponame> [-l limit] [commit message]" abort 'usage: commitpkg <reponame> [-l limit] [commit message]' fi repo="$1" shift Loading @@ -58,7 +58,7 @@ done) || true # see if any limit options were passed, we'll send them to rsync unset rsyncopts if [ "$1" = "-l" ]; then if [ "$1" = '-l' ]; then rsyncopts="--bwlimit=$2" shift 2 fi Loading Loading @@ -89,7 +89,7 @@ for _arch in ${arch[@]}; do archrelease $repo-${_arch} || abort done if [ "${arch[*]}" == "any" ]; then if [ "${arch[*]}" == 'any' ]; then if [ -d ../repos/$repo-i686 -a -d ../repos/$repo-x86_64 ]; then pushd ../repos/ >/dev/null echo -n "removing $repo-i686 and $repo-x86_64..." Loading @@ -101,4 +101,5 @@ if [ "${arch[*]}" == "any" ]; then fi fi # vim:ft=sh:ts=4:sw=4:et: # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132 Loading
archco +6 −3 Original line number Diff line number Diff line #!/bin/bash if [ "$1" = "" ]; then echo "Usage: archco <package name> [<package name>]" if [ "$1" = '' ]; then echo 'Usage: archco <package name> [<package name>]' exit 1 fi for i in "$@"; do svn co svn+ssh://gerolde.archlinux.org/srv/svn-packages/$i done # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
archrelease +17 −14 Original line number Diff line number Diff line #!/bin/bash if [ "$1" = "" ]; then echo "Usage: archrelease <repo>" if [ "$1" = '' ]; then echo 'Usage: archrelease <repo>' exit 1 fi if [ ! -f PKGBUILD ]; then echo "archrelease: PKGBUILD not found" echo 'archrelease: PKGBUILD not found' exit 1 fi if [ "$(basename $(readlink -f .))" != "trunk" ]; then echo "archrelease: Not in a package trunk dir" if [ "$(basename $(readlink -f .))" != 'trunk' ]; then echo 'archrelease: Not in a package trunk dir' exit 1 fi if [ "$(svn diff)" != "" ]; then echo "archrelease: You have not committed your changes yet!" echo " Please run 'upgpkg' or 'svn commit' first" if [ "$(svn diff)" != '' ]; then echo 'archrelease: You have not committed your changes yet!' echo ' Please run "svn commit" first' exit 1 fi Loading @@ -31,3 +31,6 @@ svn copy -q -r HEAD trunk repos/$1 svn commit -q -m "archrelease: copy trunk to $1" popd >/dev/null echo 'done' # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
archrm +5 −2 Original line number Diff line number Diff line #!/bin/bash if [ "$1" = "" ]; then echo "Usage: archrm <path to checkout>" if [ "$1" = '' ]; then echo 'Usage: archrm <path to checkout>' exit 1 fi Loading @@ -11,3 +11,6 @@ fi #popd rm -rf $1 # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
checkpkg +63 −62 Original line number Diff line number Diff line #!/bin/bash # Source makepkg.conf; fail if it is not found if [ -r "/etc/makepkg.conf" ]; then source "/etc/makepkg.conf" if [ -r '/etc/makepkg.conf' ]; then source '/etc/makepkg.conf' else echo "/etc/makepkg.conf not found!" echo '/etc/makepkg.conf not found!' exit 1 fi Loading @@ -18,13 +18,13 @@ strip_url() { } if [ ! -f PKGBUILD ]; then echo "This must be run in the directory of a built package." echo 'This must be run in the directory of a built package.' exit 1 fi source PKGBUILD if [ "$arch" == "any" ]; then CARCH="any" . PKGBUILD if [ "$arch" == 'any' ]; then CARCH='any' fi for _pkgname in ${pkgname[@]}; do Loading Loading @@ -61,7 +61,7 @@ for _pkgname in ${pkgname[@]}; do fi if [ ! -f $oldpkg ]; then if echo $pkgurl | grep "^file:///" > /dev/null 2>&1; then if echo $pkgurl | grep '^file:///' > /dev/null 2>&1; then cp `echo $pkgurl | sed 's#^file://##'` . elif [ -f $PKGDEST/$oldpkg ]; then cp $PKGDEST/$oldpkg . Loading Loading @@ -91,4 +91,5 @@ for _pkgname in ${pkgname[@]}; do fi done # vim:ft=sh:ts=4:sw=4:et: # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
commitpkg +60 −59 Original line number Diff line number Diff line #!/bin/bash abort() { echo ${1:-"Cancelled"} echo ${1:-'Cancelled'} exit 1 } # Source makepkg.conf; fail if it is not found if [ -r "/etc/makepkg.conf" ]; then source "/etc/makepkg.conf" if [ -r '/etc/makepkg.conf' ]; then source '/etc/makepkg.conf' else abort "/etc/makepkg.conf not found!" abort '/etc/makepkg.conf not found!' fi # Source user-specific makepkg.conf overrides if [ -r ~/.makepkg.conf ]; then source ~/.makepkg.conf . ~/.makepkg.conf fi cmd=$(basename "$0") if [ ! -f PKGBUILD ]; then abort "No PKGBUILD file" abort 'No PKGBUILD file' fi source PKGBUILD . PKGBUILD pkgbase=${pkgbase:-$pkgname} # set up repo-specific opts depending on how we were called server="gerolde.archlinux.org" if [ "$cmd" == "extrapkg" ]; then repo="extra" elif [ "$cmd" == "corepkg" ]; then repo="core" elif [ "$cmd" == "testingpkg" ]; then repo="testing" elif [ "$cmd" == "communitypkg" ]; then repo="community" server="aur.archlinux.org" elif [ "$cmd" == "community-testingpkg" ]; then repo="community-testing" server="aur.archlinux.org" server='gerolde.archlinux.org' if [ "$cmd" == 'extrapkg' ]; then repo='extra' elif [ "$cmd" == 'corepkg' ]; then repo='core' elif [ "$cmd" == 'testingpkg' ]; then repo='testing' elif [ "$cmd" == 'communitypkg' ]; then repo='community' server='aur.archlinux.org' elif [ "$cmd" == 'community-testingpkg' ]; then repo='community-testing' server='aur.archlinux.org' else if [ $# -eq 0 ]; then abort "usage: commitpkg <reponame> [-l limit] [commit message]" abort 'usage: commitpkg <reponame> [-l limit] [commit message]' fi repo="$1" shift Loading @@ -58,7 +58,7 @@ done) || true # see if any limit options were passed, we'll send them to rsync unset rsyncopts if [ "$1" = "-l" ]; then if [ "$1" = '-l' ]; then rsyncopts="--bwlimit=$2" shift 2 fi Loading Loading @@ -89,7 +89,7 @@ for _arch in ${arch[@]}; do archrelease $repo-${_arch} || abort done if [ "${arch[*]}" == "any" ]; then if [ "${arch[*]}" == 'any' ]; then if [ -d ../repos/$repo-i686 -a -d ../repos/$repo-x86_64 ]; then pushd ../repos/ >/dev/null echo -n "removing $repo-i686 and $repo-x86_64..." Loading @@ -101,4 +101,5 @@ if [ "${arch[*]}" == "any" ]; then fi fi # vim:ft=sh:ts=4:sw=4:et: # vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent # kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132