Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
ceb4d917
Commit
ceb4d917
authored
Mar 06, 1994
by
Per Cederqvist
Browse files
From GNU m4 1.1.
parent
9a3b5a7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/mkinstalldirs
0 → 100755
View file @
ceb4d917
#!/bin/sh
# Make directory hierarchy.
# Written by Noah Friedman <friedman@prep.ai.mit.edu>
# Public domain.
defaultIFS
=
'
'
IFS
=
"
${
IFS
-
${
defaultIFS
}}
"
errstatus
=
0
for
file
in
${
1
+
"
$@
"
}
;
do
oIFS
=
"
${
IFS
}
"
# Some sh's can't handle IFS=/ for some reason.
IFS
=
'%'
set
-
`
echo
${
file
}
|
sed
-e
's@/@%@g'
-e
's@^%@/@'
`
IFS
=
"
${
oIFS
}
"
pathcomp
=
''
for
d
in
${
1
+
"
$@
"
}
;
do
pathcomp
=
"
${
pathcomp
}${
d
}
"
if
test
!
-d
"
${
pathcomp
}
"
;
then
echo
"mkdir
$pathcomp
"
1>&2
mkdir
"
${
pathcomp
}
"
||
errstatus
=
$?
fi
pathcomp
=
"
${
pathcomp
}
/"
done
done
exit
$errstatus
# eof
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment