]> TLD Linux GIT Repositories - tld-builder.git/blob - client/get_pkgrevs.sh
- show full time and date in HTML queue, drop filtering by requester
[tld-builder.git] / client / get_pkgrevs.sh
1 #!/bin/sh
2
3 if test -z $1; then
4   echo "Usage: $0 <file with list of specs>"
5   exit
6 fi
7
8 for pkg in $(cat $1 | sed -e 's/\.spec$//g;'); do
9   rm -f /tmp/$pkg.tags
10   wget http://pkgrevs.tld-linux.org/list/$pkg -O /tmp/$pkg.tags 1>/dev/null 2>&1
11   atag=$(head -n 1 /tmp/$pkg.tags)
12   rm -f /tmp/$pkg.tags
13   if [ "x$atag" = "x" ]; then
14     echo "$pkg.spec"
15   else
16     echo "$pkg.spec:$atag"
17   fi
18 done