diff options
author | erh <erh> | 2004-04-29 18:25:33 +0000 |
---|---|---|
committer | erh <erh> | 2004-04-29 18:25:33 +0000 |
commit | 87d9ca169cd5c5126ad5aee2788509a1236ad142 (patch) | |
tree | 1e0627a633a8bfdfcdd0e5dafe10d61177391e12 /www/jakarta-tomcat | |
parent | 5f2ed2f3de48283c4db512a2d819099fec0666dc (diff) | |
download | pkgsrc-87d9ca169cd5c5126ad5aee2788509a1236ad142.tar.gz |
Add the script to get the list of master sites for Tomcat 5.
Diffstat (limited to 'www/jakarta-tomcat')
-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" |