1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 02:09:23 +00:00

adding selective templating dotfiles for #250

This commit is contained in:
deadc0de6
2020-08-24 13:54:47 +02:00
parent 49953be2bd
commit 2bf4740f10
2 changed files with 56 additions and 8 deletions

View File

@@ -86,6 +86,9 @@ profiles:
defined_in_alt: echo defall
dotfiles:
- ALL
pinclude:
include:
- pmain
_EOF
#cat ${cfg}
@@ -93,16 +96,27 @@ _EOF
echo "main" > ${tmps}/dotfiles/abc
echo "alt" > ${tmps}/dotfiles/def
# install
# install pmain
echo "install pmain"
cd ${ddpath} | ${bin} install -f -c ${cfg} -p pmain -V
[ ! -e ${tmpd}/abc ] && echo "dotfile not installed" && exit 1
grep main ${tmpd}/abc
# install pall
echo "install pall"
cd ${ddpath} | ${bin} install -f -c ${cfg} -p pall -V
[ ! -e ${tmpd}/abcall ] && echo "dotfile not installed" && exit 1
grep main ${tmpd}/abcall
[ ! -e ${tmpd}/defall ] && echo "dotfile not installed" && exit 1
grep alt ${tmpd}/defall
# install pinclude
echo "install pinclude"
rm -f ${tmpd}/abc
cd ${ddpath} | ${bin} install -f -c ${cfg} -p pinclude -V
[ ! -e ${tmpd}/abc ] && echo "dotfile not installed" && exit 1
grep main ${tmpd}/abc
## CLEANING
rm -rf ${tmps} ${tmpd} ${scr} ${scr2}