Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
7176:42222161de9b | 7177:cba37985dec5 |
---|---|
1 #!/bin/sh | |
2 | |
3 VENDOR="`cat /proc/cpuinfo | grep vendor_id | cut -c 13-`" | |
4 MODEL="`cat /proc/cpuinfo | grep "model name" | cut -c 14-`" | |
5 MHZ="`cat /proc/cpuinfo | grep MHz | cut -c 12-14` MHz" | |
6 MEMORY="`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` Kb" | |
7 BUILD="`echo $VENDOR $MODEL $MHZ | tr [\ ] [_]`" | |
8 VGA="`lspci | grep VGA | cut -c 36-`" | |
9 | |
10 export LOGFILE="`pwd`/$BUILD.logs/log-`date +\"%Y-%m-%d\"`" | |
11 export COMPILEOPTIONS="--enable-runtime-cpudetection" | |
12 | |
13 mkdir $BUILD.logs 2> /dev/null | |
14 | |
15 function wrtlog { | |
16 echo "[ `date +\"%Y-%m-%d %T\"` ] $*" >> "$LOGFILE" | |
17 } |