mkdir.sh

来自「Apache V2.0.15 Alpha For Linuxhttpd-2_0_」· Shell 代码 · 共 36 行

SH
36
字号
#!/bin/sh## ##  mkdir.sh -- make directory hierarchy####  Based on `mkinstalldirs' from Noah Friedman <friedman@prep.ai.mit.edu>##  as of 1994-03-25, which was placed in the Public Domain.##  Cleaned up for Apache's Autoconf-style Interface (APACI)##  by Ralf S. Engelschall <rse@apache.org>#### This script falls under the Apache License.# See http://www.apache.org/docs/LICENSEumask 022errstatus=0for file in ${1+"$@"} ; do     set fnord `echo ":$file" |\               sed -e 's/^:\//%/' -e 's/^://' -e 's/\// /g' -e 's/^%/\//'`    shift    pathcomp=    for d in ${1+"$@"}; do        pathcomp="$pathcomp$d"        case "$pathcomp" in            -* ) pathcomp=./$pathcomp ;;        esac        if test ! -d "$pathcomp"; then            echo "mkdir $pathcomp" 1>&2            mkdir "$pathcomp" || errstatus=$?        fi        pathcomp="$pathcomp/"    donedoneexit $errstatus

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?