From c09dceb3997ef3e581a442ca9416e886cbeef304 Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 14 Jul 2019 21:24:11 +0200 Subject: Replaced initFolders with setupscript system --- stows | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 stows (limited to 'stows') diff --git a/stows b/stows new file mode 100755 index 0000000..e19639b --- /dev/null +++ b/stows @@ -0,0 +1,22 @@ +#!/bin/bash + +flags="" + +# Allow for flags into the setup things +while test $# != 0 +do + case "$1" in + -D) + # Collect flag + flags="$flags -D" ;; + *) + # Run pre + sh "./$1/#pre_stow.sh#" $flags + # Run stow + stow $flags $1 + # Run post + sh "./$1/#post_stow.sh#" $flags ;; + esac + shift +done + -- cgit v1.2.3