File set_ftp_1.3.7.latest.sh of Package dba-proftpd-137e
#!/bin/bash
v=`ls -1d 1.3.7? 1.3.7?? 1.3.7??? 1.3.7???? 2>/dev/null| cut -d "." -f3 |sort -n | tail -1 |cut -c 2`
i=`ls -l 1.3.7.latest.bak* 2>/dev/null|wc -l`
test -L 1.3.7.latest && mv 1.3.7.latest 1.3.7.latest.bak.${i}
rc=`ln -fs 1.3.7${v} 1.3.7.latest`
exit $rc