2 # $XConsortium: aminstall.sh,v 1.1 94/03/29 15:54:08 gildea Exp $
3 # aminstall - transfer cross-compiled files to system running Amoeba.
4 # Usage: aminstall binary-directory [-s stksz] unix-source amoeba-dest
7 # Default soap mask for files
12 USAGE="Usage: $PROG binary-directory unix-source amoeba-dest"
42 # Change /public .... into /super (just for installation)
44 stripped=`echo $dest | sed 's:^/public::'`
45 if [ X$dest != X$stripped ]; then
50 # If the file already exists, then delete it
52 INFO=`$bindir/std_info $dest 2>&1`
56 *bytes*) $bindir/del -f $dest
58 /??????) echo $PROG: cannot install over directory 1>&2
61 *) $bindir/del -d $dest
66 # Transfer the file to Amoeba
68 $bindir/../bin.scripts/ainstall $stksz $unxfile $dest > /dev/null 2>&1
71 echo "This is not binary - using tob"
72 $bindir/tob $unxfile $dest