just moved the checksum func

This commit is contained in:
Natanael Copa 2008-11-25 10:44:32 +00:00
parent 5a3c28db9d
commit 1af37411f0

20
abuild
View File

@ -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