automatically md5check and fetch
This commit is contained in:
parent
6bbb1b6be9
commit
ffd9030e50
2
abuild
2
abuild
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue