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:
		
							parent
							
								
									91e18b2974
								
							
						
					
					
						commit
						ed8e8fdb0a
					
				| @ -28,13 +28,13 @@ while (<IN>) { | |||||||
|    if (!(++$x % 80)) { print "\n"; } |    if (!(++$x % 80)) { print "\n"; } | ||||||
|    #update the headings |    #update the headings | ||||||
|    if (~($_ =~ /\*/)) { |    if (~($_ =~ /\*/)) { | ||||||
|       if ($_ =~ /\\chapter{.+}/) { |       if ($_ =~ /\\chapter\{.+}/) { | ||||||
|           ++$chapter; |           ++$chapter; | ||||||
|           $section = $subsection = 0; |           $section = $subsection = 0; | ||||||
|       } elsif ($_ =~ /\\section{.+}/) { |       } elsif ($_ =~ /\\section\{.+}/) { | ||||||
|           ++$section; |           ++$section; | ||||||
|           $subsection = 0; |           $subsection = 0; | ||||||
|       } elsif ($_ =~ /\\subsection{.+}/) { |       } elsif ($_ =~ /\\subsection\{.+}/) { | ||||||
|           ++$subsection; |           ++$subsection; | ||||||
|       } |       } | ||||||
|    } |    } | ||||||
|  | |||||||
| @ -9,7 +9,7 @@ set -e | |||||||
| 
 | 
 | ||||||
| if [ -f /proc/cpuinfo ] | if [ -f /proc/cpuinfo ] | ||||||
| then | 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 | else | ||||||
|   MAKE_JOBS=8 |   MAKE_JOBS=8 | ||||||
| fi | fi | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user