Small fixes

testme.sh: nowadays some VM solutions tend to use "processor" word
in other places (like "model name: Common KVM processor")
booker.pl: escape left brace
This commit is contained in:
Dennis Fateyev 2015-12-12 18:12:42 +01:00 committed by Steffen Jaeckel
parent 91e18b2974
commit ed8e8fdb0a
2 changed files with 4 additions and 4 deletions

View File

@ -28,13 +28,13 @@ while (<IN>) {
if (!(++$x % 80)) { print "\n"; }
#update the headings
if (~($_ =~ /\*/)) {
if ($_ =~ /\\chapter{.+}/) {
if ($_ =~ /\\chapter\{.+}/) {
++$chapter;
$section = $subsection = 0;
} elsif ($_ =~ /\\section{.+}/) {
} elsif ($_ =~ /\\section\{.+}/) {
++$section;
$subsection = 0;
} elsif ($_ =~ /\\subsection{.+}/) {
} elsif ($_ =~ /\\subsection\{.+}/) {
++$subsection;
}
}

View File

@ -9,7 +9,7 @@ set -e
if [ -f /proc/cpuinfo ]
then
MAKE_JOBS=$(( ($(cat /proc/cpuinfo | grep processor | tail -n -1 | cut -d':' -f2) + 1) * 2 + 1 ))
MAKE_JOBS=$(( ($(cat /proc/cpuinfo | grep -E '^processor[[:space:]]*:' | tail -n -1 | cut -d':' -f2) + 1) * 2 + 1 ))
else
MAKE_JOBS=8
fi