makepac/install.sh

19 lines
353 B
Bash
Raw Normal View History

2022-07-27 22:45:40 -04:00
#!/usr/bin/bash
root="root"
all_files() {
find $root -type f,l
}
for f in $(all_files)
do
install_path="${f#"$root"}"
mkdir -p "$(dirname "$install_path")"
2022-11-17 15:31:42 -05:00
# ln -snf "$PWD/$f" "$install_path"
# shellcheck disable=SC2046
install -C $(stat -c '-m %a -g %g -o %u' "$PWD/$f") "$PWD/$f" "$install_path"
2022-07-27 22:45:40 -04:00
done
# vim: set filetype=bash: