#!/bin/sh -x
# This is a mkinstall automatically generated installer script.
# There may be some inefficiencies involving subshells doing nothing
# and there may be other time consuming building rules to exclude, but it
# works for most things and subshells are cheap.

set() { : ; }   # stub out set so that command echoing can't be turned off

install --owner bin --group 0 --mode a=rx --strip ps /bin/ps
install --owner bin --group 0 --mode a=rx --strip uptime /usr/bin/uptime
install --owner bin --group 0 --mode a=rx --strip tload /usr/bin/tload
install --owner bin --group 0 --mode a=rx --strip free /usr/bin/free
install --owner bin --group 0 --mode a=rx --strip w /usr/bin/w
install --owner bin --group 0 --mode a=rx --strip top /usr/bin/top
install --owner bin --group 0 --mode a=rx --strip vmstat /usr/bin/vmstat
install --owner bin --group 0 --mode a=rx --strip sessreg /usr/bin/sessreg
install --owner bin --group 0 --mode a=rx --strip watch /usr/bin/watch
install --owner bin --group 0 --mode a=rx --strip psupdate /sbin/psupdate
(cd skill
)
(cd skill
rm -f /usr/bin/skill /usr/man/man1/skill.1
rm -f /usr/bin/snice /usr/man/man1/snice.1
cp skill /usr/bin/skill
strip /usr/bin/skill
chgrp root /usr/bin/skill
chmod 0755 /usr/bin/skill
ln /usr/bin/skill /usr/bin/snice
cp skill.1 /usr/man/man1/skill.1
chmod 644 /usr/man/man1/skill.1
ln /usr/man/man1/skill.1\
	/usr/man/man1/snice.1
)
(cd psmisc
)
(cd psmisc
install -d -o 0 -g 0 -m 755 /usr/bin		
install -o 0 -g 0 -m 555 fuser /bin		
install -o 0 -g 0 -m 555 killall /usr/bin		
install -o 0 -g 0 -m 555 pstree /usr/bin		
install -d -o 0 -g 0 -m 755 /usr/man/man1	
install -o 0 -g 0 -m 444 *.1 /usr/man/man1	
)
(cd xproc
)
(cd xproc
if [ -d /usr/X11R6/bin ]; then set +x; \
else (set -x; mkdirhier /usr/X11R6/bin); fi
install -c -s  xload /usr/X11R6/bin/xload
(cd  /usr/X11R6/bin; \
rm -f  xidle; \
ln -s xload  xidle)
(cd  /usr/X11R6/bin; \
rm -f  xmem; \
ln -s xload  xmem)
if [ -d /usr/X11R6/bin ]; then set +x; \
else (set -x; mkdirhier /usr/X11R6/bin); fi
install -c -s -o 0 -m 4555 XConsole /usr/X11R6/bin/XConsole
if [ -d /usr/X11R6/lib/X11/app-defaults ]; then set +x; \
else (set -x; mkdirhier /usr/X11R6/lib/X11/app-defaults); fi
install -c -m 0444 XLoad.ad /usr/X11R6/lib/X11/app-defaults/XLoad
if [ -d /usr/X11R6/lib/X11/app-defaults ]; then set +x; \
else (set -x; mkdirhier /usr/X11R6/lib/X11/app-defaults); fi
install -c -m 0444 XMem.ad /usr/X11R6/lib/X11/app-defaults/XMem
if [ -d /usr/X11R6/lib/X11/app-defaults ]; then set +x; \
else (set -x; mkdirhier /usr/X11R6/lib/X11/app-defaults); fi
install -c -m 0444 XIdle.ad /usr/X11R6/lib/X11/app-defaults/XIdle
echo "install in . done"
)
(cd xcpustate
)
(cd xcpustate
if [ -d /usr/X11R6/bin ]; then set +x; \
else (set -x; mkdirhier /usr/X11R6/bin); fi
install -c -m 4755  xcpustate /usr/X11R6/bin/xcpustate
echo "install in . done"
)
install --owner man --group 0 --mode a=r ps.1 /usr/man/man1/ps.1
install --owner man --group 0 --mode a=r uptime.1 /usr/man/man1/uptime.1
install --owner man --group 0 --mode a=r tload.1 /usr/man/man1/tload.1
install --owner man --group 0 --mode a=r free.1 /usr/man/man1/free.1
install --owner man --group 0 --mode a=r w.1 /usr/man/man1/w.1
install --owner man --group 0 --mode a=r top.1 /usr/man/man1/top.1
install --owner man --group 0 --mode a=r sessreg.1 /usr/man/man1/sessreg.1
install --owner man --group 0 --mode a=r watch.1 /usr/man/man1/watch.1
install --owner man --group 0 --mode a=r psupdate.8 /usr/man/man8/psupdate.8
install --owner man --group 0 --mode a=r vmstat.8 /usr/man/man8/vmstat.8
