vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit bddbb8c1f8c7da47f9d2be4a02003e71a1a8e01e
parent 01b29bc82f8e40042bbd9d57185368122ab9a0bc
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 30 Sep 2019 13:14:45 +0300

Add makeinstall function

Diffstat:
M.local/bin/updot | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/.local/bin/updot b/.local/bin/updot @@ -23,6 +23,7 @@ Updot updates the dotfiles and installs the current progs.csv EOF } + if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then usage exit @@ -69,6 +70,15 @@ read ans [ "$ans" = "y" ] || die 'User exited' } +makeinstall() { + cd /tmp + dir="$(mktemp -d)" + git clone $1 $dir || die 'Could not clone git repo' + cd $dir + make || die 'Could not build %s' "$1" + sudo make install || die 'Could not install %s' "$1" +} + installcsv() {\ [ -e $progs ] || die 'Could not retrieve progs.csv' while IFS=, read -r src name