#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 1999 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
#
IFS="
"
# sys: system; user: login name; cdir: current directory;
cdir=`pwd`
dir=""
abs=""
sys=""
var=""
varto=""
varfrom=""
trap "exit 1" 1 2 13 15
# mktmpdir - Create a private (mode 0700) temporary directory inside of /tmp
# for this process's temporary files. We set up a trap to remove the
# directory on exit (trap 0), and also on SIGHUP, SIGINT, SIGQUIT, and
# SIGTERM.
#
}
# get options
while getopts s: FLAG; do
;;
exit 1
;;
esac
done
if [ $# -gt 0 ]; then
fi
if test -z "$user"
fi
then
do
if test $sys
then
if test $sys != $i; then continue; fi
fi
then
cd $pu/$i
do
if test $j = "." -o $j = ".."; then continue; fi
if test -d $j
fi
while true
do
echo '? \c'
then
trap ": ;;" 1
d)
"")
break ;;
# options m, a:
# If dir path begins with a slash, use full path for destination;
# otherwise, use path relative to current dir;
# default destination is current dir
#
# As files are transferred, put their names in $tmpdir/$$uupick.
# Only remove those named files from...receive/..dir if cmp
# verifies transfer took place. then find & remove directories
# (separate find is necessary because cpio -v doesn't print dir names)
a|m)
if test $dir
if test $abs != 0
fi
else
fi
continue
fi
if [ "$cmd" = "a" ]
then
level=2
else
level=1
fi
do
if test -f $varfrom; then
else
fi
else
fi
done
break $level;;
p)
if test -d $j
then find $j -print
elif test -s $j
then cat $j
fi;;
q)
break 3;;
!*)
tdir=`pwd`
cd $cdir
cd $tdir
echo '!';;
*)
gettext "Usage: [d][m dir][a dir][p][q][cntl-d][!cmd][*][new-line]";;
esac
trap "exit 1" 1
else
break 3
fi
done
done
fi
done
fi