File set_php_5.6.latest.sh of Package dba-apa24-php-5622-zend

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