mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[system] list installed files explicitly
This commit is contained in:
parent
a2b7172d37
commit
a75f5395aa
3 changed files with 15 additions and 15 deletions
|
@ -10,19 +10,20 @@ backup=()
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")/../files"
|
cd "$(dirname "${BASH_SOURCE[0]}")/../files"
|
||||||
install -Dm644 ../../LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
||||||
_install_files *
|
install -vDm644 ../../LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
|
||||||
|
_install_my_file -vDm644 etc/initcpio/hooks/bootmsg
|
||||||
|
_install_my_file -vDm644 etc/initcpio/install/bootmsg
|
||||||
|
_install_my_file -vDm644 etc/initcpio/hooks/consolecolors
|
||||||
|
_install_my_file -vDm644 etc/initcpio/install/consolecolors
|
||||||
|
install -vdm750 "$pkgdir/etc/sudoers.d"
|
||||||
|
_install_my_file -vDm640 etc/sudoers.d/99_dmitmel_dotfiles
|
||||||
|
_install_my_file -vDm644 etc/sysctl.d/50-dmitmel.conf
|
||||||
|
_install_my_file -vDm644 etc/bootmsg
|
||||||
|
install -vDm644 ../../colorschemes/out/setvtrgb.txt "$pkgdir/etc/consolecolors"
|
||||||
|
_install_my_file -vDm644 etc/locale.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
_install_files() {
|
_install_my_file() {
|
||||||
local path real_path mode; for path in "$@"; do
|
install "$@" "$pkgdir/${*: -1}"
|
||||||
real_path="$(realpath "$path")"
|
|
||||||
mode="$(stat --format "%a" "$real_path")"
|
|
||||||
if [[ -d "$path" ]]; then
|
|
||||||
install --directory --mode "$mode" "$pkgdir/$path"
|
|
||||||
_install_files "$path"/*
|
|
||||||
else
|
|
||||||
install --mode "$mode" "$real_path" "$pkgdir/$path"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
../../../colorschemes/out/setvtrgb.txt
|
|
|
@ -6,7 +6,7 @@ distro="$(lsb_release -si)"
|
||||||
case "$distro" in
|
case "$distro" in
|
||||||
Arch)
|
Arch)
|
||||||
cd arch
|
cd arch
|
||||||
makepkg --syncdeps --force --install
|
makepkg --syncdeps --force --install --clean
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo >&2 "distro '$distro' is unsupported"
|
echo >&2 "distro '$distro' is unsupported"
|
||||||
|
|
Loading…
Reference in a new issue