LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File set_tomcat_8.0.latest.sh of Package dba-tomcat-8012-core (Project home:csbuild:DBA)

#!/bin/bash
#set -x
v=`ls -1d 8.0.? 8.0.?? 2>/dev/null|cut -d "." -f3 |sort -n |tail -1`
i=`ls -l 8.0.latest.bak* 2>/dev/null|wc -l`
test -L 8.0.latest && mv 8.0.latest 8.0.latest.bak.${i}
rc=`ln -fs 8.0.${v} 8.0.latest`
exit $rc