source: rtems/mkinstalldirs @ c94eb25

4.104.114.84.95
Last change on this file since c94eb25 was 6f9c75c3, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 16, 1998 at 4:56:48 PM

Ralf Corsepius reported a number of missing CVS Id's:

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.

  • Property mode set to 100755
File size: 631 bytes
Line 
1#!/bin/sh
2# Make directory hierarchy.
3# Written by Noah Friedman <friedman@prep.ai.mit.edu>
4# Public domain.
5#
6#  $Id$
7#
8
9defaultIFS='   
10'
11IFS="${IFS-${defaultIFS}}"
12
13errstatus=0
14
15for file in ${1+"$@"} ; do 
16   oIFS="${IFS}"
17   # Some sh's can't handle IFS=/ for some reason.
18   IFS='%'
19   set - `echo ${file} | sed -e 's@/@%@g' -e 's@^%@/@'`
20   IFS="${oIFS}"
21
22   pathcomp=''
23
24   for d in ${1+"$@"} ; do
25     pathcomp="${pathcomp}${d}"
26
27     if test ! -d "${pathcomp}"; then
28        echo "mkdir $pathcomp" 1>&2
29        mkdir "${pathcomp}" || errstatus=$?
30     fi
31
32     pathcomp="${pathcomp}/"
33   done
34done
35
36exit $errstatus
37
38# eof
Note: See TracBrowser for help on using the repository browser.