Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/cmd/html/download.sh
1808 views
1
########################################################################
2
# #
3
# This software is part of the ast package #
4
# Copyright (c) 1996-2011 AT&T Intellectual Property #
5
# and is licensed under the #
6
# Eclipse Public License, Version 1.0 #
7
# by AT&T Intellectual Property #
8
# #
9
# A copy of the License is available at #
10
# http://www.eclipse.org/org/documents/epl-v10.html #
11
# (with md5 checksum b35adb5213ca9657e911e9befb180842) #
12
# #
13
# Information and Software Systems Research #
14
# AT&T Research #
15
# Florham Park NJ #
16
# #
17
# Glenn Fowler <[email protected]> #
18
# #
19
########################################################################
20
: download item hosttype ...
21
22
command=download
23
case $(getopts '[-][123:xyz]' opt --xyz 2>/dev/null; echo 0$opt) in
24
0123) ARGV0="-a $command"
25
USAGE=$'
26
[-?
27
@(#)$Id: download (AT&T Research) 2000-12-07 $
28
]
29
'$USAGE_LICENSE$'
30
[+NAME?download - generate web site download instructions for an mm document]
31
[+DESCRIPTION?\bdownload\b is a \bksh\b(1) script that generates web site
32
download instructions for an \bmm\b(1) document. \aitem\a names the
33
item to be downloaded and \atype\a ... names the supported architecture
34
type(s) as reported by \bpackage\b(1).]
35
[+?\bdownload\b is most often used in the \b.sh\b directive of \bmm2html\b(1)
36
or \btroff2html\b(1): \b.sh download warp sgi.mips3 linux.i386\b.]
37
38
item [ type ... ]
39
40
[+SEE ALSO?\bmm2html\b(1), \bpackage\b(1), \btroff2html\b(1)]
41
'
42
id=${USAGE##????}
43
id=${id%']'*}
44
;;
45
*) ARGV0=""
46
USAGE='i:[file] [ file ... ]'
47
id='mm2html (AT&T Research) 1999-04-15'
48
;;
49
esac
50
51
usage()
52
{
53
OPTIND=0
54
getopts $ARGV0 "$USAGE" OPT '-?'
55
exit 2
56
}
57
58
while getopts $ARGV0 "$USAGE" OPT
59
do case $OPT in
60
i) . $OPT || exit 1 ;;
61
*) usage ;;
62
esac
63
done
64
shift $OPTIND-1
65
case $# in
66
0|1) usage ;;
67
esac
68
69
item=$1
70
shift
71
print -r -- ".H 1 Download"
72
print -r -- "Check the"
73
print -r -- ".xx link=\"../faq.html FAQ\""
74
print -r -- "for information on binary installations."
75
print -r -- "Source and binary packages for"
76
print -r -- ".B ${item}"
77
print -r -- "are available at the"
78
print -r -- ".xx link=\"/sw/download/ package\""
79
print -r -- "download site; evaluation binaries containing only"
80
print -r -- ".B ${item}"
81
print -r -- "are also available for these system architectures:"
82
print -r -- ".BL"
83
for type
84
do print -r -- ".LI"
85
print -r -- ".xx link=\"./${item}-${type}.tgz ${type}\""
86
done
87
print -r -- ".LE"
88
print -r -- ".PP"
89
print -r -- "NOTE: Click the right mouse button to make sure the file is"
90
print -r -- "dowloaded and not displayed (go figure)."
91
92