⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install.sh

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 SH
字号:
#! /usr/bin/ksh##  @(#)install.sh	4.1	ULTRIX	7/17/90#cmd=/bin/mvstrip=""chmod="/bin/chmod 755"chown="/etc/chown -f root"chgrp="/bin/chgrp -f system"while :do	case $1 in	-s )	strip="/bin/strip"		;;	-c )	cmd="/bin/cp"		;;	-m )	chmod="/bin/chmod $2"		shift		;;	-o )	chown="/etc/chown -f $2"		shift		;;	-g )	chgrp="/bin/chgrp -f $2"		shift		;;	* )	break		;;	esac	shiftdonecase "$2" in"")	print -u2 "install: no destination specified"	exit 1	;;.|"$1")	print -u2 "install: can't move $1 onto itself"	exit 1	;;esaccase "$3" in"")	;;*)	print -u2 "install: too many files specified -> $*"	exit 1	;;esacif [ -d $2 ]then	file=$2/$1else	file=$2fiif [ -r $1 ]then	/bin/rm -f $fileelse	print -u2 "install: file $1 does not exist."	exit 1fi## mkdir if directory does not exist.#mkdir -p $(dirname $file)	$cmd $1 $file[ $strip ] && $strip $file$chown $file$chgrp $file$chmod $file

⌨️ 快捷键说明

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