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