makepac/install.sh

19 lines
371 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"
2022-11-18 10:42:49 -05:00
read -ra perm_options < <(stat -c '-m %a -g %g -o %u' "$PWD/$f")
install -C "${perm_options[@]}" "$PWD/$f" "$install_path"
2022-07-27 22:45:40 -04:00
done
# vim: set filetype=bash: