DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

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

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T b

⟦1dce6bc95⟧ TextFile

    Length: 578 (0x242)
    Types: TextFile
    Names: »bsdinstall.sh«

Derivation

└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
    └─⟦af5ba6c8e⟧ »unix3.0/DVIWARE.tar.Z« 
        └─⟦ca79c7339⟧ 
            └─⟦this⟧ »DVIware/laser-setters/mctex/misc/bsdinstall.sh« 

TextFile

#! /bin/sh
#
# bsdinstall
# acts much like the 4.2BSD `install' shell script

cmd=mv
strip=false

own=root
grp=staff
mode=755

while :; do
	case "$1" in
	-s)	strip=true;;
	-c)	cmd=cp;;
	-o)	own="$2"; shift;;
	-g)	grp="$2"; shift;;
	-m)	mode="$2"; shift;;
	*)	break;;
	esac
	shift
done

case $# in
2)	;;
*)	echo "usage: install [-s] [-c] [-o owner] [-g group] [-m mode] file destination" 1>&2
	exit 1;;
esac

$cmd -f "$1" "$2"
if [ -d "$2" ]; then
	file="$2/$1"
else
	file="$2"
fi
chmod "$mode" "$file"
if $strip; then
	strip "$file"
fi
chown "$own" "$file"
chgrp "$grp" "$file"