summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvangelos Foutras <foutrelis@gmail.com>2009-09-23 19:17:47 +0300
committerAaron Griffin <aaronmgriffin@gmail.com>2009-09-23 12:00:00 -0700
commit70e48eff7a9bbec2eaac2633bb131ebcd31fc96b (patch)
treec9939607214a7d5e841856a6194162eed577d868
parente82825dd6da27cbc695a6c0f35450b1f5ce7755a (diff)
downloaddevtools32-70e48eff7a9bbec2eaac2633bb131ebcd31fc96b.tar.xz
commitpkg: get rid of tabs and indent comments
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rwxr-xr-xcommitpkg46
1 files changed, 23 insertions, 23 deletions
diff --git a/commitpkg b/commitpkg
index 0d13c6d..15f6981 100755
--- a/commitpkg
+++ b/commitpkg
@@ -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