📄 aminstall.sh
字号:
#!/bin/sh# $XConsortium: aminstall.sh,v 1.1 94/03/29 15:54:08 gildea Exp $# aminstall - transfer cross-compiled files to system running Amoeba.# Usage: aminstall binary-directory [-s stksz] unix-source amoeba-dest## Default soap mask for files#SPMASK=0xFF:2:2export SPMASKPROG=$0USAGE="Usage: $PROG binary-directory unix-source amoeba-dest"## Argument check#case $# in3|5) ;;*) echo $USAGE >&2 exit 1 ;;esacbindir=$1stksz=case $2 in-s) if [ $# -ne 5 ] then echo $USAGE >&2 exit 1 fi stksz="-s $3" shift shift ;;esacunxfile=$2dest=$3## Change /public .... into /super (just for installation)#stripped=`echo $dest | sed 's:^/public::'`if [ X$dest != X$stripped ]; then dest=/super$strippedfi## If the file already exists, then delete it#INFO=`$bindir/std_info $dest 2>&1`case $INFO in*"not found"*) ;;*failed*) ;;*bytes*) $bindir/del -f $dest ;;/??????) echo $PROG: cannot install over directory 1>&2 exit ;;*) $bindir/del -d $dest ;;esac## Transfer the file to Amoeba#$bindir/../bin.scripts/ainstall $stksz $unxfile $dest > /dev/null 2>&1if [ $? -ne 0 ]then echo "This is not binary - using tob" $bindir/tob $unxfile $destfi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -