create correct links to non-remote sources (patches) if $SRCDEST != $startdir

This commit is contained in:
Linux User 2008-11-08 08:39:48 +00:00
parent 6271e6b888
commit 57e3393b84
1 changed files with 4 additions and 1 deletions

5
abuild
View File

@ -102,9 +102,12 @@ fetch() {
case "$s" in
http://*|ftp://*)
uri_fetch "$s" || return 1
ln -sf "$SRCDEST/${s##*/}" "$srcdir"/
;;
*)
ln -s "$startdir/$s" "$srcdir/"
;;
esac
ln -sf "$SRCDEST/${s##*/}" "$srcdir"/
done
}