summaryrefslogtreecommitdiff
path: root/stows
blob: 75c8f1732b28605287fca3298e38baf78e73714f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env 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