rpms/gdb/devel gdb2fail.sh,1.4,1.5
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Wed Sep 20 22:27:03 UTC 2006
Author: jkratoch
Update of /cvs/dist/rpms/gdb/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv27467
Modified Files:
gdb2fail.sh
Log Message:
Fixed support of the pending '/work/tasks/' logs.
Index: gdb2fail.sh
===================================================================
RCS file: /cvs/dist/rpms/gdb/devel/gdb2fail.sh,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- gdb2fail.sh 20 Sep 2006 21:56:56 -0000 1.4
+++ gdb2fail.sh 20 Sep 2006 22:27:01 -0000 1.5
@@ -30,12 +30,20 @@
if test -z "$isa" ; then
isa=`echo "$f" | sed -n -e 's,^.*/scratch/.*/task_\([0-9]*\)/logs/\([^/]*\)/.*$,-\2,p'`
fi
+ if test -z "$ver" ; then
+ ver=`echo "$f" | sed -n -e 's,^.*/work/tasks/\([0-9]*\)/.*$,-\1,p'`
+ fi
# begin 644 gdb-i386-redhat-linux-gnu.tar.bz2
- line="gdb${ver}${rel}${isa}"
-### echo "$line"
for t in sum log ; do
+ if test -z "$isa" ; then
+ isa=`uudecode < "$f" -o /dev/stdout | bunzip2 \
+ | tar -t -f - "gdb-*-redhat-linux-gnu.$t" 2>&1 \
+ | sed -n 's/^gdb-\(.*\)-redhat-linux-gnu[.].*$/-\1/p' \
+ `
+ fi
+ line="gdb${ver}${rel}${isa}"
uudecode < "$f" -o /dev/stdout | bunzip2 \
- | tar -xpvO -f - "gdb-*-redhat-linux-gnu.$t" \
+ | tar -xpvvO -f - "gdb-*-redhat-linux-gnu.$t" \
> "tests/$line.$t"
done
done
More information about the fedora-cvs-commits
mailing list