mkdirs

来自「motorola自己开发的针对coldfire 5272的Dbug bootlo」· 代码 · 共 21 行

TXT
21
字号
#!/bin/sh
######################################################################
#
# mkdirs - This shell script accepts a list of filenames on the
# command line and creates all the directories listed in the file
# names.  This script is particularly useful for Makefiles that need
# to create directory trees for object files.
#
######################################################################

for file in $*
do
	dir=`dirname ${file}`
	if [ ! -d ${dir} ]
	then
		mkdir -p ${dir}
		echo Creating ... ${dir}
	fi
done
exit 0

⌨️ 快捷键说明

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