source: rtems/mkinstalldirs @ 254b4450

4.104.114.84.9
Last change on this file since 254b4450 was 254b4450, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 1, 1997 at 11:07:52 PM

This set of changes is the build of what was required to convert to
GNU autoconf. This is the first large step in allowing an RTEMS
user to perform a one-tree build (per crossgcc FAQ) including RTEMS
in the build process. With this change RTEMS is configured in
built in the same style as the GNU tools, yet retains the basic
structure of its traditional Makefiles (ala Tony Bennett).
Jiri Gaisler (jgais@…) deserves (and received)
a big thank you for doing this.

There are still issues to be resolved but as of this commit, all target
which can be built on a linux host have been using a modified version
of the source Jiri submitted. This source was merged and most targets
built in the tree before this commit.

There are some issues which remain to be resolved but they are primarily
related to host OS dependencies, script issues, the use of gawk
for hack_specs, and the dependence on gcc snapshots. These will
be resolved.

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