blob: 7f888fee843ffcee243c92663b8704fac4b10276 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
# Strip cat, we only need the pkg name
ezcpkg="`echo ${1} | sed -e "s|^.*/||g"`"
# Take care of some strange package naming
ezcpkg="${ezcpkg/ezc-/}"
# Take care of outputting the version number
pwd="`pwd`"
if ! test -d "${pwd}/${ezcpkg}-tmp" ; then
mkdir "${pwd}/${ezcpkg}-tmp"
fi
cd "${pwd}/${ezcpkg}-tmp"
wget --quiet --tries=1 --timeout=3 "http://ez.no/doc/components/overview/latest"
grep -i ">${ezcpkg}</a>" latest | sed -e "s|<li><a href=\"/doc/components.*\">${ezcpkg}</a> (||g" | sed -e "s|)</li>.*||g"
rm -Rf "${pwd}/${ezcpkg}-tmp"
|