home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume12
/
cnews
/
part01
/
newsbin.proto
/
mkpdir
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1987-10-19
|
343 b
|
18 lines
#! /bin/sh
# mkpdir dir ... - make directory and parents
PATH=/bin:/usr/bin:/usr/ucb:/usr/lib/news; export PATH # must include this file's dir.
status=0
for dir
do
mkdir "$dir" 2>/dev/null
if test ! -d "$dir"; then
mkpdir "`echo $dir | sed 's;/[^/]*$;;'`"
mkdir "$dir"
if test ! -d "$dir"; then
status=1
fi
fi
done
exit $status