Mercurial > mplayer.hg
annotate TOOLS/benchmark-gab/variables @ 7579:24860f7c716f
change i18n to autodetect
author | pontscho |
---|---|
date | Wed, 02 Oct 2002 09:24:34 +0000 |
parents | c36333ff54b0 |
children |
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 |
7184 | 2 export PATH=$PATH:/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin |
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
3 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
4 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
|
5 MODEL="`cat /proc/cpuinfo | grep "model name" | cut -c 14-`" |
7197 | 6 CPUFLAGS="`cat /proc/cpuinfo | grep flags | cut -c 10-`" |
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
7 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
|
8 MEMORY="`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` Kb" |
7197 | 9 BUILD="`echo $VENDOR $MODEL $MHZ | tr [\ ] [_] | tr [\/] [_]`" |
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
10 VGA="`lspci | grep VGA | cut -c 36-`" |
7197 | 11 MPBIN="$BUILD/mplayer" |
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
12 |
7184 | 13 export LOGFILE="`pwd`/log-$BUILD-`date +\"%Y-%m-%d\"`" |
7177
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
14 export COMPILEOPTIONS="--enable-runtime-cpudetection" |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
15 |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
16 function wrtlog { |
cba37985dec5
v0.9 of my compile+benchmark script, designed for my local boxes, shared on
gabucino
parents:
diff
changeset
|
17 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
|
18 } |