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