|
|
BSD 4.3reno
: run this script through /bin/sh
umask 002
OFS="$IFS" IFS=:
for A in rprompt hostname uname who
do
for D in $PATH
do
if [ ! -f $D/$A ]; then
continue
fi
case $A in
rprompt) LOCAL=`$A %h`
;;
hostname) LOCAL=`$A`
;;
uname) LOCAL=`$A -n`
;;
who) LOCAL=`$A am i | sed -e 's%^\(.*\)!.*$%\1%'`
;;
esac
break
done
if [ "x$LOCAL" != x ]; then
break
fi
done
IFS=
if [ ! -r version.major ]; then echo 6 > version.major; fi
if [ ! -r version.minor ]; then echo 5 > version.minor; fi
if [ ! -r version.lbl ]; then echo 1 > version.lbl; fi
rm -f version.c
echo `cat version.major` `cat version.minor` `cat version.lbl` | \
awk '{ printf "char *version = \"LBL-UCB MH %d.%d.%d ", $1, $2, $3 > "version.c" }'
echo '('$LOCAL') of '`date`'";' >> version.c
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.