head 1.2; access; symbols rel-0-3-0-rc1:1.2 stable_0_2_x:1.1.0.4 stable_0_2_0:1.1 stable_0_2_0_rc3:1.1 stable_0_2_0_rc1:1.1 stable_0_2_0_rc2:1.1 nog_patch_73:1.1 nog_patch_72:1.1 nog_patch_71:1.1 nog_patch_70:1.1 nog_patch_69:1.1 nog_patch_68:1.1 nog_patch_67:1.1 nog_patch_66:1.1 nog_patch_65:1.1 nog_patch_64:1.1 nog_patch_63:1.1 nog_patch_62:1.1 nog_patch_61:1.1 nog_patch_60:1.1 nog_patch_59:1.1 nog_patch_58:1.1 nog_patch_57:1.1 nog_patch_56:1.1 nog_patch_55:1.1 nog_patch_54:1.1 nog_patch_53:1.1 nog_patch_52:1.1 nog_patch_51:1.1 nog_patch_50:1.1 nog_patch_49:1.1 nog_patch_48:1.1 nog_patch_47:1.1 nog_patch_46:1.1 nog_patch_45:1.1 nog_patch_44:1.1 nog_patch_43:1.1 nog_patch_42:1.1 nog_patch_41:1.1 nog_patch_40:1.1 nog_patch_39:1.1 nog_patch_38:1.1 nog_patch_37:1.1 nog_patch_36:1.1 nog_patch_35:1.1 nog_patch_34:1.1 nog_patch_33:1.1 stable_0_1_x:1.1.0.2 stable_0_1_0:1.1 tn_m001:1.1; locks; strict; comment @# @; 1.2 date 2008.09.06.18.07.42; author jeremybennett; state Exp; branches; next 1.1; commitid 6b848c2c6564567; 1.1 date 2000.03.03.15.39.45; author jrydberg; state Exp; branches; next ; desc @@ 1.2 log @These are the changes to allow or1ksim to build as a library as well as a standalone simulator. The concept of a "generic" peripheral is added, which will commuicate with an external model via upcalls. @ text @#! /bin/sh # mkinstalldirs --- make directory hierarchy scriptversion=2006-05-11.19 # Original author: Noah Friedman # Created: 1993-05-16 # Public domain. # # This file is maintained in Automake, please report # bugs to or send patches to # . nl=' ' IFS=" "" $nl" errstatus=0 dirmode= usage="\ Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ... Create each directory DIR (with mode MODE, if specified), including all leading file name components. Report bugs to ." # process command line arguments while test $# -gt 0 ; do case $1 in -h | --help | --h*) # -h for help echo "$usage" exit $? ;; -m) # -m PERM arg shift test $# -eq 0 && { echo "$usage" 1>&2; exit 1; } dirmode=$1 shift ;; --version) echo "$0 $scriptversion" exit $? ;; --) # stop option processing shift break ;; -*) # unknown option echo "$usage" 1>&2 exit 1 ;; *) # first non-opt arg break ;; esac done for file do if test -d "$file"; then shift else break fi done case $# in 0) exit 0 ;; esac # Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and # mkdir -p a/c at the same time, both will detect that a is missing, # one will create a, then the other will try to create a and die with # a "File exists" error. This is a problem when calling mkinstalldirs # from a parallel make. We use --version in the probe to restrict # ourselves to GNU mkdir, which is thread-safe. case $dirmode in '') if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -p -- $*" exec mkdir -p -- "$@@" else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. test -d ./-p && rmdir ./-p test -d ./--version && rmdir ./--version fi ;; *) if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 && test ! -d ./--version; then echo "mkdir -m $dirmode -p -- $*" exec mkdir -m "$dirmode" -p -- "$@@" else # Clean up after NextStep and OpenStep mkdir. for d in ./-m ./-p ./--version "./$dirmode"; do test -d $d && rmdir $d done fi ;; esac for file do case $file in /*) pathcomp=/ ;; *) pathcomp= ;; esac oIFS=$IFS IFS=/ set fnord $file shift IFS=$oIFS for d do test "x$d" = x && continue pathcomp=$pathcomp$d case $pathcomp in -*) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr else if test ! -z "$dirmode"; then echo "chmod $dirmode $pathcomp" lasterr= chmod "$dirmode" "$pathcomp" || lasterr=$? if test ! -z "$lasterr"; then errstatus=$lasterr fi fi fi fi pathcomp=$pathcomp/ done done exit $errstatus # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: @ 1.1 log @Major update of the enviorment. Now uses autoconf and automake. The simulator uses readline aswell to get input from the user. A number of new files added, some modified. The libc directory is now called support. @ text @d3 4 a6 1 # Author: Noah Friedman d8 11 a18 1 # Public domain d20 2 a21 1 # $Id: mkinstalldirs,v 1.1 2000/03/02 16:44:26 johryd Exp $ d23 35 a57 1 errstatus=0 d61 45 a105 2 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift d107 40 a146 17 pathcomp= for d do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" mkdir "$pathcomp" || lasterr=$? if test ! -d "$pathcomp"; then errstatus=$lasterr fi fi d148 2 a149 2 pathcomp="$pathcomp/" done d154 8 a161 1 # mkinstalldirs ends here @