早期freebsd实现

源代码在线查看: putman.sh

软件大小: 40554 K
上传用户: luyibo54618
关键词: freebsd
下载地址: 免注册下载 普通下载 VIP

相关代码

				#! /bin/sh				##  $Revision: 1.5 $				##				##  Prepare a manpage for installation, and install it.  Usage:				##	putman  ""  				case $# in				4)				    ;;				*)				    echo "Can't install manpage:  wrong number of arguments." 1>&2				esac								STYLE="$1"				FLAGS="$2"				SRC="$3"				DEST="$4"								case "X${STYLE}" in				XNONE)				    exit 0				    ;;				XSOURCE)				    exec /bin/sh ../installit.sh ${FLAGS} ${SRC} ${DEST}				    ;;				XNROFF-PACK)				    T=${TMPDIR-/tmp}/man$$				    nroff -man ${SRC} >$T				    /bin/sh ../installit.sh ${FLAGS} $T ${DEST} && pack ${DEST}				    rm -f $T				    exit				    ;;				XNROFF-PACK-SCO)				    T=${TMPDIR-/tmp}/man$$				    nroff -man ${SRC} >$T				    DEST2=`echo ${DEST} | sed -e 's/\..$/.INN/'`				    /bin/sh ../installit.sh ${FLAGS} $T ${DEST2} && pack ${DEST2}				    rm -f $T				    exit				    ;;				esac								echo "Can't install manpage:  unknown method ${STYLE}." 1>&2				exit 1							

相关资源