abuild: add symlinksrc target for create the source file symlinks

needed for upcoming 'rootbld' support
This commit is contained in:
Timo Teräs 2017-01-31 10:23:56 +02:00
parent 520cc15fe9
commit 4442efff6e

View File

@ -340,6 +340,18 @@ uri_fetch_mirror() {
uri_fetch "$uri"
}
symlinksrc() {
local s
mkdir -p "$srcdir"
for s in $source; do
if is_remote "$s"; then
ln -sf "$SRCDEST/$(filename_from_uri $s)" "$srcdir"/
else
ln -sf "$startdir/$s" "$srcdir/"
fi
done
}
default_fetch() {
local s
mkdir -p "$srcdir"