pkgsrc/www/jakarta-tomcat/files/getsite.sh

8 lines
329 B
Bash
Executable file

#!/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"