diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-18 08:35:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2008-10-18 08:35:09 +0000 |
commit | 316f7230faf09af2eedda56e3fc6d52e2816cee4 (patch) | |
tree | d34ef1279e7671bde5b907dad9298a1201ba8b0b | |
parent | fdc478bde8a2a0d76d33fcc89fa313c9f31bb79c (diff) | |
download | abuild-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-x | abuild | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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}" |