#!/bin/bash

auxnames=`cat auxlist`
unalias -a

echo "Looking for auxilliary programs..."
err=n
arg=""
for i in $auxnames; do
 n=`type -path $i`
 if [ "$n" = "" ]; then
   echo
   echo "ERROR: auxilliary program $i not found."
   printf "\007"
   err=y
 else
   arg="$arg -C `dirname $n` $i"
 fi
done

if [ $err = y ]; then
 echo "Please correct the error(s) and run again.  See the RESCUE file."
 echo "I will go on creating the disk contents, but some things will be missing."
 
 echo
fi

echo "Packing auxilliary programs to /tmp/disk/auxprogs.tgz...."
tar zchf /tmp/disk/auxbin.tgz $arg

