Error Buddy
Do you have an error message from your application? Then find the answer with Error Buddy. You can search over 40000 source code files and troubleshooting documents using our beta lucene/nutch search interface or if you prefer, search as normal using google. With LXR technology you can drill right down into the line of source code where it came from with full cross-referencing.
If after searching you didn't get your ideal answer, or you are still unclear what the error means, you can choose to post that question to the community forums following the link included in the search results.
[1.6]001 #! /bin/sh 002 # mkinstalldirs --- make directory hierarchy 003 # Author: Noah Friedman <friedman@prep.ai.mit.edu> 004 # Created: 1993-05-16 005 # Public domain 006 007 errstatus=0 008 dirmode="" 009 010 usage="\ 011 Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..." 012 013 # process command line arguments 014 while test $# -gt 0 ; do 015 case "${1}" in 016 -h | --help | --h* ) # -h for help 017 echo "${usage}" 1>&2; exit 0 ;; 018 -m ) # -m PERM arg 019 shift 020 test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; } 021 dirmode="${1}" 022 shift ;; 023 -- ) shift; break ;; # stop option processing 024 -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option 025 * ) break ;; # first non-opt arg 026 esac 027 done 028 029 for file 030 do 031 if test -d "$file"; then 032 shift 033 else 034 break 035 fi 036 done 037 038 case $# in 039 0) exit 0 ;; 040 esac 041 042 case $dirmode in 043 '') 044 if mkdir -p -- . 2>/dev/null; then 045 echo "mkdir -p -- $*" 046 exec mkdir -p -- "$@" 047 fi ;; 048 *) 049 if mkdir -m "$dirmode" -p -- . 2>/dev/null; then 050 echo "mkdir -m $dirmode -p -- $*" 051 exec mkdir -m "$dirmode" -p -- "$@" 052 fi ;; 053 esac 054 055 for file 056 do 057 set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` 058 shift 059 060 pathcomp= 061 for d 062 do 063 pathcomp="$pathcomp$d" 064 case "$pathcomp" in 065 -* ) pathcomp=./$pathcomp ;; 066 esac 067 068 if test ! -d "$pathcomp"; then 069 echo "mkdir $pathcomp" 070 071 mkdir "$pathcomp" || lasterr=$? 072 073 if test ! -d "$pathcomp"; then 074 errstatus=$lasterr 075 else 076 if test ! -z "$dirmode"; then 077 echo "chmod $dirmode $pathcomp" 078 079 lasterr="" 080 chmod "$dirmode" "$pathcomp" || lasterr=$? 081 082 if test ! -z "$lasterr"; then 083 errstatus=$lasterr 084 fi 085 fi 086 fi 087 fi 088 089 pathcomp="$pathcomp/" 090 done 091 done 092 093 exit $errstatus 094 095 # Local Variables: 096 # mode: shell-script 097 # sh-indentation: 3 098 # End: 099 # mkinstalldirs ends here 100
Testing
