]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Optionally take number of files to compile in perf.sh
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 28 Apr 2010 06:53:04 +0000 (08:53 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 28 Apr 2010 06:57:45 +0000 (08:57 +0200)
perf.sh

diff --git a/perf.sh b/perf.sh
index fdc2904cbfc6e16b9b240f932edb6346c7a4123b..a1d4b8901ad9b3d21b98e5ceae947805182a2e64 100755 (executable)
--- a/perf.sh
+++ b/perf.sh
@@ -73,7 +73,11 @@ rm -rf $tmpdir
 mkdir $tmpdir
 cd $tmpdir
 
-n=30
+if [ "$#" -gt 0 ]; then
+    n=$1
+else
+    n=30
+fi
 create_src $n
 
 echo "Without ccache:"