mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
> RTEMS is under CVS control and has been since rtems 3.1.16 which was > around May 1995. So I just to add the $Id$. If you notice other files > with missing $Id$'s let me know. I try to keep w\up with it. Now that you have asked -- I'll attach a list of files lacking an RCS-Id to this mail. This list has been generated by a little sh-script I'll also enclose.
39 lines
631 B
Bash
Executable File
39 lines
631 B
Bash
Executable File
#!/bin/sh
|
|
# Make directory hierarchy.
|
|
# Written by Noah Friedman <friedman@prep.ai.mit.edu>
|
|
# Public domain.
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
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
|