summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2008-10-18 08:35:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2008-10-18 08:35:09 +0000
commit316f7230faf09af2eedda56e3fc6d52e2816cee4 (patch)
treed34ef1279e7671bde5b907dad9298a1201ba8b0b
parentfdc478bde8a2a0d76d33fcc89fa313c9f31bb79c (diff)
downloadabuild-0.2.tar.gz
abuild-0.2.tar.bz2
abuild-0.2.tar.xz
abuild-0.2.zip
Rename "md5" variable to "md5sums" so its more like PKGBUILD.v0.2
-rwxr-xr-xabuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/abuild b/abuild
index cbb4ac8..bfb2653 100755
--- a/abuild
+++ b/abuild
@@ -56,7 +56,7 @@ checkdeps() {
}
checkmd5() {
- ( cd "$SRCDEST" && echo "$md5" | awk '$2 == "'$1'" { print $0 } ' \
+ ( cd "$SRCDEST" && echo "$md5sums" | awk '$2 == "'$1'" { print $0 } ' \
| md5sum -c )
}
@@ -92,7 +92,7 @@ fetch() {
# unpack the sources
unpack() {
local u
- [ -z "$md5" ] && die "Use 'abuild checksum >>$APKBUILD' to generate a checksum"
+ [ -z "$md5sums" ] && die "Use 'abuild checksum >>$APKBUILD' to generate a checksum"
mkdir -p "$srcdir"
for u in $source; do
local s="$SRCDEST/${u##*/}" # $(basename $s)
@@ -274,8 +274,8 @@ checksum() {
for s in $source; do
files="$files ${s##*/}"
done
- md5="$(cd "$SRCDEST" && md5sum $files)" || die "md5sum failed"
- echo "md5=\"$md5\""
+ md5sums="$(cd "$SRCDEST" && md5sum $files)" || die "md5sum failed"
+ echo "md5sums=\"$md5sums\""
}
APKBUILD="${APKBUILD:-./APKBUILD}"