A new user interface for you! Read more...

File set_php_5.5.latest.sh of Package dba-php-5521

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