summaryrefslogtreecommitdiffstats
path: root/scripts/grab-logs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/grab-logs.sh')
-rwxr-xr-xscripts/grab-logs.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/grab-logs.sh b/scripts/grab-logs.sh
new file mode 100755
index 000000000..8a445ec99
--- /dev/null
+++ b/scripts/grab-logs.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+VER=$(make verrel)
+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
+