abuild: add symlinksrc target for create the source file symlinks
needed for upcoming 'rootbld' support
This commit is contained in:
parent
520cc15fe9
commit
4442efff6e
12
abuild.in
12
abuild.in
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user