create-leading

来自「实战Linux编程的原代码,希望对学驱动的人能有所帮助」· 代码 · 共 32 行

TXT
32
字号
#! /bin/sh# Test -D option.# Note that the tests below use `ginstall', not install, because# that's the name of the binary in ../../src.if test "$VERBOSE" = yes; then  set -x  ginstall --versionfi. $srcdir/../envvar-checkpwd=`pwd`dir=install-D$$trap "cd $pwd; rm -rf $dir" 0 1 2 3 15mkdir $dirfail=0cd $dirfile=fileecho foo > $file# Before 4.0q, this would mistakenly create $file, not `dest'# in no-dir1/no-dir2/.ginstall -D $file no-dir1/no-dir2/dest || fail=1test -d no-dir1/no-dir2 || fail=1test -r no-dir1/no-dir2/dest || fail=1exit $fail

⌨️ 快捷键说明

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