summaryrefslogtreecommitdiff
path: root/stows
diff options
context:
space:
mode:
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
+