diff options
author | CVS Import User <samba-bugs@samba.org> | 2004-04-04 09:21:52 +0000 |
---|---|---|
committer | CVS Import User <samba-bugs@samba.org> | 2004-04-04 09:21:52 +0000 |
commit | 9f765b7406282904ce56f2535dcd929a9aefc5ca (patch) | |
tree | dbdff78b624ac7c1afcb8851f395df3d99eb1f84 /source/script/installdirs.sh | |
parent | 111b4e05ab96eafc4212f38dc5977538907187c7 (diff) | |
download | samba-9f765b7406282904ce56f2535dcd929a9aefc5ca.tar.gz samba-9f765b7406282904ce56f2535dcd929a9aefc5ca.tar.xz samba-9f765b7406282904ce56f2535dcd929a9aefc5ca.zip |
r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunk
metze
Diffstat (limited to 'source/script/installdirs.sh')
-rwxr-xr-x | source/script/installdirs.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/source/script/installdirs.sh b/source/script/installdirs.sh new file mode 100755 index 00000000000..1db46b82ff2 --- /dev/null +++ b/source/script/installdirs.sh @@ -0,0 +1,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 + + + |