2021-06-30 00:11:24 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
dest="${1}/${HOME}/.config"
|
|
|
|
|
|
|
|
cd misc
|
|
|
|
|
|
|
|
for file in *
|
|
|
|
do
|
2021-10-04 23:11:49 -04:00
|
|
|
if [ "${file}" = "legacy" ]
|
|
|
|
then
|
|
|
|
true
|
|
|
|
elif [ "${file}" = "$(echo $file | grep -e "\\\\*.sh")" ] || [ "${file}" = "$(echo $file | grep -e "\\\\*.es")" ]
|
2021-06-30 00:11:24 -04:00
|
|
|
then
|
|
|
|
install -Dm755 "${file}" "${dest}/fxde/fxde-core/scripts/${file}"
|
2021-10-04 23:11:49 -04:00
|
|
|
elif [ "${file}" = "xsession" ]
|
2021-06-30 13:42:01 -04:00
|
|
|
then
|
|
|
|
install -Dm755 "${file}" "${dest}/../.xsession"
|
2021-10-04 23:11:49 -04:00
|
|
|
elif [ "${file}" = "esrc" ]
|
2021-09-16 18:43:33 -04:00
|
|
|
then
|
|
|
|
install -Dm644 "${file}" "${dest}/../.esrc"
|
2021-10-04 23:11:49 -04:00
|
|
|
elif [ "${file}" = "init.el" ]
|
2021-09-16 18:43:33 -04:00
|
|
|
then
|
|
|
|
install -Dm644 "${file}" "${dest}/emacs/init.el"
|
2021-10-04 23:11:49 -04:00
|
|
|
elif [ "${file}" = "gtkrc-2.0" ]
|
2021-09-16 18:43:33 -04:00
|
|
|
then
|
|
|
|
install -Dm644 "${file}" "${dest}/../.gtkrc-2.0"
|
2021-10-04 23:11:49 -04:00
|
|
|
else
|
2021-06-30 00:11:24 -04:00
|
|
|
install -Dm755 "${file}" "${dest}/fxde/fxde-core/config/${file}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
cd ../terminal
|
|
|
|
|
|
|
|
for file in *
|
|
|
|
do
|
|
|
|
if [ $(echo ${file}|grep -e "\\\\*yash\\\\*") ]
|
|
|
|
then
|
2021-06-30 13:42:01 -04:00
|
|
|
install -Dm644 "${file}" "${dest}/yash/conf/${file}"
|
2021-06-30 00:11:24 -04:00
|
|
|
else
|
|
|
|
install -Dm644 "${file}" "${dest}/${file}"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
cd ../xresources
|
|
|
|
for file in *
|
|
|
|
do
|
|
|
|
install -Dm644 "${file}" "${dest}/xresources/${file}"
|
|
|
|
done
|