summaryrefslogtreecommitdiff
path: root/stows
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2019-07-14 21:24:11 +0200
committerJulian T <julian@jtle.dk>2019-07-14 21:29:14 +0200
commitc09dceb3997ef3e581a442ca9416e886cbeef304 (patch)
tree8ea65ddfeb5c0623be92dccddf6de3e8c89dce2d /stows
parentcf26b4ffe9745b2c758ff2e65da328a10885e608 (diff)
Replaced initFolders with setupscript system
Diffstat (limited to 'stows')
-rwxr-xr-xstows22
1 files changed, 22 insertions, 0 deletions
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
+