1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/source3/script/installdirs.sh
Gerald Carter 629120a0a1 cosmetic fix when DESTDIR=/ (default)
(This used to be commit e660b5752a)
2003-10-06 19:24:17 +00:00

20 lines
224 B
Bash
Executable File

#!/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