summaryrefslogtreecommitdiffstats
path: root/source/script/installdirs.sh
blob: 1db46b82ff2f5cf194f3758c9bd91e5a0cf22f56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

while ( test -n "$1" ); do

	DIRNAME=`echo $1 | sed 's/\/\//\//g'`
	if [ ! -d $DIRNAME ]; then
		mkdir -p $DIRNAME
	fi

	if [ ! -d $DIRNAME ]; then
		echo Failed to make directory $1
		exit 1
	fi

	shift;
done