2013-09-26 17:14:40 +02:00

9 lines
325 B
Bash

#!/bin/sh
TOMCAT_VERSION=${1##*-}
TOMCAT_VERSION=${TOMCAT_VERSION%%.tar.gz}
ftp -o - http://tomcat.apache.org/download-55.cgi | \
grep '<option' | \
tr -d '\n' | \
sed -e's/[[:space:]]*//g' -e's,[^<]*<optionvalue="\([^"]*\)">[^<]*</option>,\1 ,g' | \
sed -e"s,\(http:[^ ]*\),\1/tomcat/tomcat-5/v${TOMCAT_VERSION}/bin/,g"