1
0
Fork 0

Improve the list of files

This commit is contained in:
Alex Kotov 2024-01-06 00:51:35 +04:00
parent fc450316f4
commit be5e4d5903
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
3 changed files with 51 additions and 51 deletions

View File

@ -1,52 +1,52 @@
install_file root root 644 '/etc/htoprc' common install_file common root root 644 '/etc/htoprc'
install_file root root 644 '/etc/tmux.conf' common install_file common root root 644 '/etc/tmux.conf'
echo echo
install_dir root root 755 '/etc/vim' install_dir root root 755 '/etc/vim'
install_file root root 644 '/etc/vim/vimrc.local' common install_file common root root 644 '/etc/vim/vimrc.local'
echo echo
install_dir root root 755 '/etc/fish' install_dir root root 755 '/etc/fish'
install_dir root root 755 '/etc/fish/conf.d' install_dir root root 755 '/etc/fish/conf.d'
install_dir root root 755 '/etc/fish/functions' install_dir root root 755 '/etc/fish/functions'
install_file root root 644 '/etc/fish/config.fish' common install_file common root root 644 '/etc/fish/config.fish'
install_file root root 644 '/etc/fish/conf.d/rvm.fish' common install_file common root root 644 '/etc/fish/conf.d/rvm.fish'
install_file root root 644 '/etc/fish/functions/fish_prompt.fish' common install_file common root root 644 '/etc/fish/functions/fish_prompt.fish'
install_file root root 644 '/etc/fish/functions/prompt_user_host.fish' common install_file common root root 644 '/etc/fish/functions/prompt_user_host.fish'
install_file root root 644 '/etc/fish/functions/rvm.fish' common install_file common root root 644 '/etc/fish/functions/rvm.fish'
if [ "$PREFIX" = 'gentoo' ]; then if [ "$PREFIX" = 'gentoo' ]; then
echo echo
install_file root root 644 '/etc/ccache.conf' gentoo install_file gentoo root root 644 '/etc/ccache.conf'
install_file root root 644 '/etc/dracut.conf' gentoo install_file gentoo root root 644 '/etc/dracut.conf'
echo echo
install_file root root 644 '/etc/conf.d/display-manager' gentoo install_file gentoo root root 644 '/etc/conf.d/display-manager'
install_file root root 644 '/etc/default/grub' gentoo install_file gentoo root root 644 '/etc/default/grub'
install_file root root 644 '/etc/env.d/70less' gentoo install_file gentoo root root 644 '/etc/env.d/70less'
install_file root root 644 '/etc/env.d/90xsession' gentoo install_file gentoo root root 644 '/etc/env.d/90xsession'
install_file root root 644 '/etc/pam.d/lightdm' gentoo install_file gentoo root root 644 '/etc/pam.d/lightdm'
install_file root portage 644 '/var/lib/portage/world' gentoo install_file gentoo root portage 644 '/var/lib/portage/world'
echo echo
install_dir root root 755 '/etc/portage/env' install_dir root root 755 '/etc/portage/env'
install_dir root root 755 '/etc/portage/package.accept_keywords' install_dir root root 755 '/etc/portage/package.accept_keywords'
install_dir root root 755 '/etc/portage/package.env' install_dir root root 755 '/etc/portage/package.env'
install_dir root root 755 '/etc/portage/package.license' install_dir root root 755 '/etc/portage/package.license'
install_dir root root 755 '/etc/portage/package.mask' install_dir root root 755 '/etc/portage/package.mask'
install_dir root root 755 '/etc/portage/package.use' install_dir root root 755 '/etc/portage/package.use'
install_dir root root 755 '/etc/portage/repos.conf' install_dir root root 755 '/etc/portage/repos.conf'
install_file root root 644 '/etc/portage/env/ccache.conf' gentoo install_file gentoo root root 644 '/etc/portage/env/ccache.conf'
install_file root root 644 '/etc/portage/make.conf' gentoo install_file gentoo root root 644 '/etc/portage/make.conf'
install_file root root 644 '/etc/portage/package.accept_keywords/misc' gentoo install_file gentoo root root 644 '/etc/portage/package.accept_keywords/misc'
install_file root root 644 '/etc/portage/package.accept_keywords/netsurf' gentoo install_file gentoo root root 644 '/etc/portage/package.accept_keywords/netsurf'
install_file root root 644 '/etc/portage/package.env/ccache' gentoo install_file gentoo root root 644 '/etc/portage/package.env/ccache'
install_file root root 644 '/etc/portage/package.license/firmware' gentoo install_file gentoo root root 644 '/etc/portage/package.license/firmware'
install_file root root 644 '/etc/portage/package.license/media' gentoo install_file gentoo root root 644 '/etc/portage/package.license/media'
install_file root root 644 '/etc/portage/package.license/misc' gentoo install_file gentoo root root 644 '/etc/portage/package.license/misc'
install_file root root 644 '/etc/portage/package.mask/binsrc' gentoo install_file gentoo root root 644 '/etc/portage/package.mask/binsrc'
install_file root root 644 '/etc/portage/package.mask/bloat' gentoo install_file gentoo root root 644 '/etc/portage/package.mask/bloat'
install_file root root 644 '/etc/portage/package.mask/noupgrade' gentoo install_file gentoo root root 644 '/etc/portage/package.mask/noupgrade'
install_file root root 644 '/etc/portage/package.use/desktop' gentoo install_file gentoo root root 644 '/etc/portage/package.use/desktop'
install_file root root 644 '/etc/portage/package.use/heavy_clients' gentoo install_file gentoo root root 644 '/etc/portage/package.use/heavy_clients'
install_file root root 644 '/etc/portage/package.use/kernel' gentoo install_file gentoo root root 644 '/etc/portage/package.use/kernel'
install_file root root 644 '/etc/portage/package.use/toolchains' gentoo install_file gentoo root root 644 '/etc/portage/package.use/toolchains'
install_file root root 644 '/etc/portage/package.use/zz-autounmask' gentoo install_file gentoo root root 644 '/etc/portage/package.use/zz-autounmask'
install_file root root 644 '/etc/portage/repos.conf/gentoo.conf' gentoo install_file gentoo root root 644 '/etc/portage/repos.conf/gentoo.conf'
fi fi

10
install
View File

@ -19,11 +19,11 @@ REPO="$(dirname "$(realpath "$0")")"
PREFIX="${1:-''}" PREFIX="${1:-''}"
install_file() { install_file() {
owner="$1" prefix="$1"
group="$2" owner="$2"
mode="$3" group="$3"
path="$4" mode="$4"
prefix="$5" path="$5"
echo install -b -o "$owner" -g "$group" -m "$mode" "$REPO/$prefix$path" "$path" echo install -b -o "$owner" -g "$group" -m "$mode" "$REPO/$prefix$path" "$path"
install -b -o "$owner" -g "$group" -m "$mode" "$REPO/$prefix$path" "$path" install -b -o "$owner" -g "$group" -m "$mode" "$REPO/$prefix$path" "$path"

4
sync
View File

@ -16,8 +16,8 @@ install_dir() {
} }
install_file() { install_file() {
path="$4" prefix="$1"
prefix="$5" path="$5"
if [ -f "$path" ]; then if [ -f "$path" ]; then
echo cp "$path" "$REPO/$prefix$path" echo cp "$path" "$REPO/$prefix$path"