diff options
author | Evangelos Foutras <foutrelis@gmail.com> | 2009-09-23 19:17:47 +0300 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-09-23 12:00:00 -0700 |
commit | 70e48eff7a9bbec2eaac2633bb131ebcd31fc96b (patch) | |
tree | c9939607214a7d5e841856a6194162eed577d868 /commitpkg | |
parent | e82825dd6da27cbc695a6c0f35450b1f5ce7755a (diff) |
commitpkg: get rid of tabs and indent comments
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'commitpkg')
-rwxr-xr-x | commitpkg | 46 |
1 files changed, 23 insertions, 23 deletions
@@ -2,7 +2,7 @@ # Source makepkg.conf; fail if it is not found if [ -r "/etc/makepkg.conf" ]; then - source "/etc/makepkg.conf" + source "/etc/makepkg.conf" else echo "/etc/makepkg.conf not found!" exit 1 @@ -10,7 +10,7 @@ fi # Source user-specific makepkg.conf overrides if [ -r ~/.makepkg.conf ]; then - source ~/.makepkg.conf + source ~/.makepkg.conf fi cmd=$(basename $0) @@ -47,49 +47,49 @@ for _pkgname in ${pkgname[@]}; do fi fi -# set up repo-specific opts depending on how we were called + # set up repo-specific opts depending on how we were called server="gerolde.archlinux.org" if [ "$cmd" == "extrapkg" ]; then - repo="extra" + repo="extra" elif [ "$cmd" == "corepkg" ]; then - repo="core" + repo="core" elif [ "$cmd" == "testingpkg" ]; then - repo="testing" + repo="testing" elif [ "$cmd" == "communitypkg" ]; then - repo="community" - server="aur.archlinux.org" + repo="community" + server="aur.archlinux.org" elif [ "$cmd" == "community-testingpkg" ]; then - repo="community-testing" - server="aur.archlinux.org" + repo="community-testing" + server="aur.archlinux.org" else - if [ $# -eq 0 ]; then + if [ $# -eq 0 ]; then echo "usage: commitpkg <reponame> [-l limit] [commit message]" exit 1 - fi - repo="$1" - shift + fi + repo="$1" + shift fi -# see if any limit options were passed, we'll send them to SCP + # see if any limit options were passed, we'll send them to SCP unset scpopts if [ "$1" = "-l" ]; then - scpopts="$1 $2" - shift 2 + scpopts="$1 $2" + shift 2 fi -# combine what we know into a variable + # combine what we know into a variable uploadto="staging/${repo}/$(basename ${pkgfile})" scp ${scpopts} "${pkgfile}" "${server}:${uploadto}" if [ "$(md5sum "${pkgfile}" | cut -d' ' -f1)" != "$(ssh ${server} md5sum "${uploadto}" | cut -d' ' -f1)" ]; then - echo "File got corrupted during upload, cancelled." - exit 1 + echo "File got corrupted during upload, cancelled." + exit 1 else - echo "File integrity okay." + echo "File integrity okay." fi if [ $? -ne 0 ]; then - echo "Cancelled" - exit 1 + echo "Cancelled" + exit 1 fi echo "===> Uploaded $pkgfile" done |