DataMuseum.dk

Presents historical artifacts from the history of:

Commodore CBM-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Commodore CBM-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦4515098bd⟧ TextFile

    Length: 1524 (0x5f4)
    Types: TextFile
    Notes: UNIX file
    Names: »man«

Derivation

└─⟦eafc30061⟧ Bits:30001199 Commodore 900 hard disk image
    └─⟦8281d0872⟧ UNIX V7 Filesystem
        └─ ⟦5daf77bc8⟧ »vol2.fd« UNIX V7 Filesystem
            └─ ⟦this⟧ »bin/man« 
└─⟦eafc30061⟧ Bits:30001199 Commodore 900 hard disk image
    └─⟦5ec4c54f2⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »bin/man« 
└─⟦f27320a65⟧ Bits:30001972 Commodore 900 hard disk image with partial source code
    └─⟦926b8033d⟧ UNIX V7 Filesystem
        └─ ⟦this⟧ »bin/man« 

TextFile

MANDIR="/usr/man"
CMD_SCAT="*cmdman"
SYS_SCAT="*sysman"
CMD_NROFF="*cmd"
SYS_NROFF="*sys"

CFLAG="y"
SFLAG="y"
WFLAG="n"
NFLAG="n"
NROFF=
CMD='/bin/scat -s $FILE'


case $# in
0)
    /bin/echo "try man man"
    exit -1
    ;;
esac

for arg
do
    case $arg in
    -c)
        CFLAG="y"
        SFLAG="n"
	continue
        ;;
    -n)
        NFLAG="y"
	CMD='/bin/nroff -man $NROFF $FILE | /bin/scat'
	continue
        ;;
    -s)
        CFLAG="n"
        SFLAG="y"
	continue
        ;;
    -w)
        WFLAG="y"
	CMD='/bin/echo $FILE'
	continue
        ;;
    -*)
        NROFF="$NROFF $arg"
	continue
        ;;
    *)
        case ${CFLAG}${SFLAG}${NFLAG} in
        yyy)
	    FILES="${MANDIR}/${CMD_NROFF}/${arg} ${MANDIR}/${SYS_NROFF}/${arg}"
	    ERROR=cs
	    ;;
	yny)
	    FILES="${MANDIR}/${CMD_NROFF}/${arg}"
	    ERROR=c
	    ;;
	nyy)
	    FILES="${MANDIR}/${SYS_NROFF}/${arg}"
	    ERROR=s
	    ;;
	yyn)
	    FILES="${MANDIR}/${CMD_SCAT}/${arg} ${MANDIR}/${SYS_SCAT}/${arg}"
	    ERROR=cs
	    ;;
	ynn)
	    FILES="${MANDIR}/${CMD_SCAT}/${arg}"
	    ERROR=c
	    ;;
	nyn)
	    FILES="${MANDIR}/${SYS_SCAT}/${arg}"
	    ERROR=s
	    ;;
	esac
	for FILE in $FILES
	do
	    if /bin/test -r $FILE
	    then
		ERROR="${ERROR} "
		eval $CMD
	    else
		ERROR="${ERROR}x"
	    fi
	done
	case $ERROR in
	cx)
	    /bin/echo $arg - not found in the command section
	    ;;
	sx)
	    /bin/echo $arg - not found in the system section
	    ;;
	csxx)
	    /bin/echo $arg - not found in the manual
	    ;;
	esac
	;;
    esac
done