automatically md5check and fetch

This commit is contained in:
Natanael Copa 2008-11-27 17:41:04 +00:00
parent 6bbb1b6be9
commit ffd9030e50
1 changed files with 2 additions and 0 deletions

2
abuild
View File

@ -108,6 +108,7 @@ md5check() {
if [ "$(echo $source | wc -l)" -ne "$(echo $md5sums | wc -l)" ]; then
die "Number of md5sums does not correspond to number of sources"
fi
fetch
msg "Checking md5sums..."
cd "$srcdir" && echo "$md5sums" | md5sum -c
}
@ -153,6 +154,7 @@ fetch() {
# unpack the sources
unpack() {
local u
md5check
mkdir -p "$srcdir"
for u in $source; do
local s="$SRCDEST/${u##*/}" # $(basename $s)