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"