dotfiles

dot files
git clone git://git.rr3.xyz/dotfiles | git clone gits://git.rr3.xyz/dotfiles
Log | Files | Refs | Submodules

.graft.sh (689B)


      1 make_install_submodule() {
      2 	local err
      3 	if ! err="$(git submodule update --init "$1")"; then
      4 		msg_error "failed to fetch $1" "$err"
      5 		return 1
      6 	fi
      7 	if ! err="$(cd "$1" && make)"; then
      8 		msg_error "failed to build $1" "$err"
      9 		return 1
     10 	fi
     11 	if ! err="$(cd "$1" && make install DESTDIR="$ROOT" PREFIX=/.local)"; then
     12 		msg_error "failed to install $1" "$err"
     13 		return 1
     14 	fi
     15 	msg green "" "installed $1"
     16 }
     17 
     18 make_install_submodule dmenu
     19 make_install_submodule dwm
     20 make_install_submodule status
     21 make_install_submodule slock
     22 msg_note "you must adjust slock with root:" \
     23 	"chown root:root $ROOT/.local/bin/slock" \
     24 	"chmod u+s $ROOT/.local/bin/slock"
     25 
     26 link .local/share/keymap.xkb
     27 link .xinitrc