summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-01-31 10:23:56 +0200
committerTimo Teräs <timo.teras@iki.fi>2017-01-31 10:23:56 +0200
commit4442efff6e3f9eda6db7e4150f206fa6b3011ccb (patch)
treef47454fe13d1551223c4509ee187846ca5ea2037 /abuild.in
parent520cc15fe99e8b4d657bc8e354ae484eb80591c0 (diff)
downloadabuild-4442efff6e3f9eda6db7e4150f206fa6b3011ccb.tar.gz
abuild-4442efff6e3f9eda6db7e4150f206fa6b3011ccb.tar.bz2
abuild-4442efff6e3f9eda6db7e4150f206fa6b3011ccb.tar.xz
abuild-4442efff6e3f9eda6db7e4150f206fa6b3011ccb.zip
abuild: add symlinksrc target for create the source file symlinks
needed for upcoming 'rootbld' support
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index ce3cf8b..faded79 100644
--- a/abuild.in
+++ b/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"