120 elif [[ -d $$item ]]; then |
120 elif [[ -d $$item ]]; then |
121 find $$item -type f -exec $(INSTALL_DATA) {} $(HOME)/{} ';' |
121 find $$item -type f -exec $(INSTALL_DATA) {} $(HOME)/{} ';' |
122 fi |
122 fi |
123 done |
123 done |
124 $(INSTALL_DATA) -t $(HOME) "$${files[@]}" |
124 $(INSTALL_DATA) -t $(HOME) "$${files[@]}" |
125 chmod 700 ~/.gnupg/ |
125 chmod 700 $(HOME)/.gnupg/ |
126 if command -v fvwm; then |
126 if command -v fvwm; then |
127 cp -r .fvwm $(HOME) |
127 cp -r .fvwm $(HOME) |
128 chmod a+x ~/.fvwm/FvwmKbdd.pl ~/.fvwm/xinit |
128 chmod a+x $(HOME)/.fvwm/FvwmKbdd.pl $(HOME)/.fvwm/xinit |
129 for f in /etc/xdg/menus/*.menu; do |
129 for f in /etc/xdg/menus/*.menu; do |
130 [[ -f "$$f" ]] || continue |
130 [[ -f "$$f" ]] || continue |
131 fname=$${f%.menu} |
131 fname=$${f%.menu} |
132 fname=$${fname##*/} |
132 fname=$${fname##*/} |
133 python .fvwm/xdg2fvwm.py Menu-$$fname $$f >~/.fvwm/$$fname.hook |
133 python .fvwm/xdg2fvwm.py Menu-$$fname $$f >$(HOME)/.fvwm/$$fname.hook |
134 echo "Read $$[HOME]/.fvwm/$$fname.hook" >>~/.fvwm/config |
134 echo "Read $$[HOME]/.fvwm/$$fname.hook" >>$(HOME)/.fvwm/config |
135 echo "AddToMenu MenuMyRoot $$fname Popup Menu-$$fname" >>~/.fvwm/config |
135 echo "AddToMenu MenuMyRoot $$fname Popup Menu-$$fname" >>$(HOME)/.fvwm/config |
136 done |
136 done |
137 fi |
137 fi |
138 mkdir -p ~/.screenshot |
138 mkdir -p $(HOME)/.screenshot |
139 for item in $(IFNONEXIST_ITEMS); do |
139 for item in $(IFNONEXIST_ITEMS); do |
140 if [[ -f $$item ]] && ! [[ -f $(HOME)/$$item ]]; then |
140 if [[ -f $$item ]] && ! [[ -f $(HOME)/$$item ]]; then |
141 $(INSTALL_DATA) $$item $(HOME)/$$item |
141 $(INSTALL_DATA) $$item $(HOME)/$$item |
142 fi |
142 fi |
143 if [[ -d $$item ]]; then |
143 if [[ -d $$item ]]; then |
146 $(INSTALL_DATA) $$file $(HOME)/$$file |
146 $(INSTALL_DATA) $$file $(HOME)/$$file |
147 fi |
147 fi |
148 done |
148 done |
149 fi |
149 fi |
150 done |
150 done |
151 chmod a+x ~/.xinitrc ~/.xserverrc |
151 chmod a+x $(HOME)/.xinitrc $(HOME)/.xserverrc |
152 ln -s -f ~/.xinitrc ~/.xsession |
152 ln -s -f $(HOME)/.xinitrc $(HOME)/.xsession |
153 ln -s -f $(HOME)/.bashrc $(HOME)/.bash_profile |
153 ln -s -f $(HOME)/.bashrc $(HOME)/.bash_profile |
154 mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/ |
154 mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/ |
155 umask 0117 |
155 umask 0117 |
156 $(INSTALL_DATA) .local/share/mc/bashrc $(HOME)/.local/share/mc/ |
156 $(INSTALL_DATA) .local/share/mc/bashrc $(HOME)/.local/share/mc/ |
157 cat .config/mc/mc.ext /etc/mc/mc.ext > $(HOME)/.config/mc/mc.ext |
157 cat .config/mc/mc.ext /etc/mc/mc.ext > $(HOME)/.config/mc/mc.ext |