diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-01-31 10:23:56 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-01-31 10:23:56 +0200 |
commit | 4442efff6e3f9eda6db7e4150f206fa6b3011ccb (patch) | |
tree | f47454fe13d1551223c4509ee187846ca5ea2037 /abuild.in | |
parent | 520cc15fe99e8b4d657bc8e354ae484eb80591c0 (diff) | |
download | abuild-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.in | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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" |