diff options
author | erh <erh@pkgsrc.org> | 2004-04-29 18:25:33 +0000 |
---|---|---|
committer | erh <erh@pkgsrc.org> | 2004-04-29 18:25:33 +0000 |
commit | 80e4fce2794b9217e7e62e17f3e332b7bb17ccd6 (patch) | |
tree | 1e0627a633a8bfdfcdd0e5dafe10d61177391e12 /www | |
parent | 4daf1a6b311d34247fcacff3c74c1719ee1758b3 (diff) | |
download | pkgsrc-80e4fce2794b9217e7e62e17f3e332b7bb17ccd6.tar.gz |
Add the script to get the list of master sites for Tomcat 5.
Diffstat (limited to 'www')
-rwxr-xr-x | www/jakarta-tomcat/files/getsite.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/www/jakarta-tomcat/files/getsite.sh b/www/jakarta-tomcat/files/getsite.sh new file mode 100755 index 00000000000..56531f5d710 --- /dev/null +++ b/www/jakarta-tomcat/files/getsite.sh @@ -0,0 +1,8 @@ +#!/bin/sh +TOMCAT_VERSION=${1##*-} +TOMCAT_VERSION=${TOMCAT_VERSION%%.tar.gz} +ftp -o - http://jakarta.apache.org/site/binindex.cgi | \ + grep '<option' | \ + tr -d '\n' | \ + sed -e's/[[:space:]]*//g' -e's,[^<]*<optionvalue="\([^"]*\)">[^<]*</option>,\1 ,g' | \ + sed -e"s,\(http:[^ ]*\),\1/jakarta/tomcat-5/v${TOMCAT_VERSION}/bin/,g" |