[test-suite] r263492 - tools/timeit.sh: Fix space/tab inconsistencies
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 14 14:14:57 PDT 2016
Author: matze
Date: Mon Mar 14 16:14:56 2016
New Revision: 263492
URL: http://llvm.org/viewvc/llvm-project?rev=263492&view=rev
Log:
tools/timeit.sh: Fix space/tab inconsistencies
Use an llvm style 2-space indentation.
Modified:
test-suite/trunk/tools/timeit.sh
Modified: test-suite/trunk/tools/timeit.sh
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/tools/timeit.sh?rev=263492&r1=263491&r2=263492&view=diff
==============================================================================
--- test-suite/trunk/tools/timeit.sh (original)
+++ test-suite/trunk/tools/timeit.sh Mon Mar 14 16:14:56 2016
@@ -8,27 +8,27 @@ ERRPUT=/dev/stderr
PERFSTAT=perfstats
while [[ $1 = -* ]]; do
- if [ $1 = "--summary" ]; then
- REPORT=$2
- PERFSTAT="$REPORT.perfstats"
- elif [ $1 = "--redirect-input" ]; then
- INPUT=$2
- elif [ $1 = "--redirect-output" ]; then
- OUTPUT=$2
- ERRPUT=$2
- elif [ $1 = "--redirect-stdout" ]; then
- OUTPUT=$2
- elif [ $1 = "--chdir" ]; then
- cd $2
- fi
- shift 2
+ if [ $1 = "--summary" ]; then
+ REPORT=$2
+ PERFSTAT="$REPORT.perfstats"
+ elif [ $1 = "--redirect-input" ]; then
+ INPUT=$2
+ elif [ $1 = "--redirect-output" ]; then
+ OUTPUT=$2
+ ERRPUT=$2
+ elif [ $1 = "--redirect-stdout" ]; then
+ OUTPUT=$2
+ elif [ $1 = "--chdir" ]; then
+ cd $2
+ fi
+ shift 2
done
if [ "$OUTPUT" = "$ERRPUT" ]; then
- # Use >& to ensure the streams are properly interleaved.
- perf stat -o $PERFSTAT $@ < $INPUT >& $OUTPUT
+ # Use >& to ensure the streams are properly interleaved.
+ perf stat -o $PERFSTAT $@ < $INPUT >& $OUTPUT
else
- perf stat -o $PERFSTAT $@ < $INPUT > $OUTPUT 2> $ERRPUT
+ perf stat -o $PERFSTAT $@ < $INPUT > $OUTPUT 2> $ERRPUT
fi
EXITCODE=$?
More information about the llvm-commits
mailing list