Mercurial > mplayer.hg
annotate TOOLS/benchmark-gab/variables @ 7177:cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
NFS, etc..
Read README, and RTFS before using it.
Oh, and feel free to reverse/del, but al3x wanted it.
author | gabucino |
---|---|
date | Fri, 30 Aug 2002 21:16:52 +0000 |
parents | |
children | bcbbe5ee11fd |
rev | line source |
---|---|
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
1 #!/bin/sh |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
2 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
3 VENDOR="`cat /proc/cpuinfo | grep vendor_id | cut -c 13-`" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
4 MODEL="`cat /proc/cpuinfo | grep "model name" | cut -c 14-`" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
5 MHZ="`cat /proc/cpuinfo | grep MHz | cut -c 12-14` MHz" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
6 MEMORY="`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` Kb" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
7 BUILD="`echo $VENDOR $MODEL $MHZ | tr [\ ] [_]`" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
8 VGA="`lspci | grep VGA | cut -c 36-`" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
9 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
10 export LOGFILE="`pwd`/$BUILD.logs/log-`date +\"%Y-%m-%d\"`" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
11 export COMPILEOPTIONS="--enable-runtime-cpudetection" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
12 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
13 mkdir $BUILD.logs 2> /dev/null |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
14 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
15 function wrtlog { |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
16 echo "[ `date +\"%Y-%m-%d %T\"` ] $*" >> "$LOGFILE" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
17 } |