mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
add symlink patch for files
This commit is contained in:
parent
1d98a1dd97
commit
cd1ff291bf
1 changed files with 9 additions and 1 deletions
|
@ -571,7 +571,15 @@ add_file() {
|
|||
else
|
||||
quiet "adding file: %s" "$dest"
|
||||
fi
|
||||
command install -Dm$mode "$src" "$BUILDROOT$dest"
|
||||
|
||||
if [[ -L $src ]]; then
|
||||
# add the binary
|
||||
add_file "$(type -P $(readlink $src))"
|
||||
# create the symlink
|
||||
add_symlink "$src" "$(type -P $(readlink $src))"
|
||||
else
|
||||
command install -Dm$mode "$src" "$BUILDROOT$dest"
|
||||
fi
|
||||
}
|
||||
|
||||
add_runscript() {
|
||||
|
|
Loading…
Reference in a new issue