update buildroot - work in progress development
[cmdllinux.git] / buildroot / _pkg / dest / pkg_check / _chk_ver_numeric.sh
blob45517d1b7755ea92976ea21d1ff41a5ff4a3e128
1 #version numeric?
2 nofiles()
4 echo "no files"
5 exit 1
8 [ -z "$1" ] && cd /dest || cd "$1"
9 ls *.tar.gz > /dev/null 2>&1 || nofiles
10 ls *.tar.gz | sed -e "s%\.tar\.gz$%%" -e 's%\(.*\)-\([^-]\+\)$%\2 \1%' -e 's%\(.*\)-\([^-]\+\)$%\2 \1%' | \
11 while read VER REV NAME; do
12 VER=`echo "$VER" | tr '.' '0'`
13 if echo "$VER" | grep -q "[^[:digit:]]"; then
14 echo "$NAME $VER $REV"
16 done