3 # Licensed to the Apache Software Foundation (ASF) under one or more
4 # contributor license agreements. See the NOTICE file distributed with
5 # this work for additional information regarding copyright ownership.
6 # The ASF licenses this file to You under the Apache License, Version 2.0
7 # (the "License"); you may not use this file except in compliance with
8 # the License. You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
19 # Make sure to set your path so that we can find
20 # the following binaries:
21 # cd, mkdir, cp, rm, find, zip
23 prefix="tomcat-connectors"
27 #################### NO CHANGE BELOW THIS LINE ##############
29 #################### FUNCTIONS ##############
32 echo "Usage:: $0 -v VERSION -w WEBSERVER -o OS -a ARCH <module file>"
33 echo " -v: version to package"
34 echo " -w: package for web server"
35 echo " -o: Operating System"
36 echo " -a: Architecture"
37 echo " -p: GNU PG passphrrase used for signing"
38 echo " -k: ID of GNU PG key to use for signing"
41 while getopts :v:w:o:a:p:k: c
46 k) sign="--default-key=$OPTARG $sign";;
47 p) sign="--passphrase=$OPTARG $sign";;
56 shift `expr $OPTIND - 1`
58 if [ -z "$version" -o -z "$websrv" ]
65 opsys="`uname -s | tr [A-Z] [a-z]`"
85 webdesc="Apache HTTP Server"
88 webdesc="Microsoft IIS Web Server"
91 webdesc="Oracle iPlanet Web Server"
94 echo "Unknown web server: $webserv"
95 echo " Supported are: httpd, iis, nsapi"
99 dist=${prefix}-${version}-${opsys}-${arch}-${websrv}
101 copy="KEYS LICENSE NOTICE"
103 rm -f ${copy} 2>/dev/null
104 rm -f ${dist} 2>/dev/null
105 rm -f ${dist}.* 2>/dev/null
107 Licensed to the Apache Software Foundation (ASF) under one or more
108 contributor license agreements. See the NOTICE file distributed with
109 this work for additional information regarding copyright ownership.
110 The ASF licenses this file to You under the Apache License, Version 2.0
111 (the "License"); you may not use this file except in compliance with
112 the License. You may obtain a copy of the License at
114 http://www.apache.org/licenses/LICENSE-2.0
116 Unless required by applicable law or agreed to in writing, software
117 distributed under the License is distributed on an "AS IS" BASIS,
118 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119 See the License for the specific language governing permissions and
120 limitations under the License.
124 Apache Tomcat Connectors - $version
126 Here your'll find module binaries for $webdesc.
127 Check the online documentation at http://tomcat.apache.org/connectors-doc/
128 for installation instructions.
130 The Apache Tomcat Project
131 http://tomcat.apache.org
141 cp ${dtop}/native/$i .
146 zip -9 -j ${dist}.zip $1 README ${copy}
150 . ${tools}/signfile.sh ${sign} $archive
153 rm -f README ${copy} 2>/dev/null