summaryrefslogtreecommitdiff
path: root/abuild
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-11-25 10:44:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-11-25 10:44:32 +0000
commit1af37411f076b3f181242d78523fa8bdca47eb91 (patch)
tree6ee38a06a4976c691979c4c40f27de320be5454e /abuild
parent5a3c28db9de7adcd5a78895cc2208b9b7103802d (diff)
downloadabuild-1af37411f076b3f181242d78523fa8bdca47eb91.tar.gz
abuild-1af37411f076b3f181242d78523fa8bdca47eb91.tar.bz2
abuild-1af37411f076b3f181242d78523fa8bdca47eb91.tar.xz
abuild-1af37411f076b3f181242d78523fa8bdca47eb91.zip
just moved the checksum func
Diffstat (limited to 'abuild')
-rwxr-xr-xabuild20
1 files changed, 10 insertions, 10 deletions
diff --git a/abuild b/abuild
index 1bda374..b6551cb 100755
--- a/abuild
+++ b/abuild
@@ -424,6 +424,16 @@ builddeps() {
done
}
+checksum() {
+ local s files
+ fetch
+ for s in $source; do
+ files="$files ${s##*/}"
+ done
+ md5sums="$(cd "$srcdir" && md5sum $files)" || die "md5sum failed"
+ echo "md5sums=\"$md5sums\""
+}
+
usage() {
echo "$(basename $0) $abuild_ver"
echo "usage: $0 [options] [cmd] ..."
@@ -452,16 +462,6 @@ usage() {
exit 0
}
-checksum() {
- local s files
- fetch
- for s in $source; do
- files="$files ${s##*/}"
- done
- md5sums="$(cd "$srcdir" && md5sum $files)" || die "md5sum failed"
- echo "md5sums=\"$md5sums\""
-}
-
APKBUILD="${APKBUILD:-./APKBUILD}"
while getopts "hfqru" opt; do