1#!/bin/sh
2# uuto
3# Send files to a user on another system.
4#
5# Copyright (C) 1992, 1993, 2002 Ian Lance Taylor
6#
7# Please feel free do whatever you like with this exciting shell
8# script.
9#
10# This is pretty trivial, since all the functionality was moved into
11# uucp itself.  The -t means to interpret the final argument as
12# system!user, the -R means to copy directories recursively, and the
13# -c means to not copy the files to the spool directory (may be
14# overriden by -C or -p).
15#
16
17usage="Taylor UUCP @VERS@, copyright (C) 1991, 92, 93, 94, 1995, 2002 Ian Lance Taylor
18Usage: $0 [options] file1 [file2...] system!user
19 -c,--nocopy: Do not copy local files to spool directory (default)
20 -C,-p,--copy: Copy local files to spool directory
21 -d,--directories: Create necessary directories (default)
22 -f,--nodirectories: Do not create directories (fail if they do not exist)
23 -g,--grade grade: Set job grade (must be alphabetic)
24 -m,--mail: Report status of copy by mail
25 -n,--notify user: Report status of copy by mail to remote user
26 -R,--recursive: Copy directories recursively (default)
27 -r,--nouucico: Do not start uucico daemon
28 -s,--status file: Report completion status to file
29 -j,--jobid: Report job id
30 -W,--noexpand: Do not add current directory to remote filenames
31 -u,--usage name: Set user name
32 -x,--debug debug: Set debugging level
33 -I,--config file: Set configuration file to use
34 -v,--version: Print version and exit
35 --help: Print help and exit
36Report bugs to taylor-uucp@gnu.org"
37
38case $# in
39  1)
40    case "z${1}" in
41      z--help)
42	 echo "$usage"
43	 exit 0
44	 ;;
45      z--version)
46         echo "uuto (Taylor UUCP) @VERS@"
47	 echo "Copyright (C) 1991, 92, 93, 94, 1995, 2002 Ian Lance Taylor"
48	 echo "This program is free software; you may redistribute it under the terms of"
49	 echo "the GNU General Public LIcense.  This program has ABSOLUTELY NO WARRANTY."
50	 exit 0
51	 ;;
52      *) ;;
53    esac
54    ;;
55  *) ;;
56esac
57
58exec @BINDIR@/uucp -t -R -c $*
59