kernel/scripts/grab-logs.sh

17 lines
557 B
Bash
Raw Normal View History

2010-07-30 02:24:43 +00:00
#!/bin/sh
2011-08-27 17:27:59 +00:00
VER=$(fedpkg verrel)
2010-07-30 02:24:43 +00:00
ver=$(echo $VER | sed -e 's/-/ /g' | awk '{print $2}')
rev=$(echo $VER | sed -e 's/-/ /g' | awk '{print $3}')
if [ -d logs ]; then
DIR=logs/
else
DIR=./
fi
wget -O $DIR/build-$VER-i686.log http://kojipkgs.fedoraproject.org/packages/kernel/$ver/$rev/data/logs/i686/build.log
wget -O $DIR/build-$VER-x86-64.log http://kojipkgs.fedoraproject.org/packages/kernel/$ver/$rev/data/logs/x86_64/build.log
wget -O $DIR/build-$VER-noarch.log http://kojipkgs.fedoraproject.org/packages/kernel/$ver/$rev/data/logs/noarch/build.log