You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			50 lines
		
	
	
		
			868 B
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			50 lines
		
	
	
		
			868 B
		
	
	
	
		
			Bash
		
	
#!/usr/bin/env bash
 | 
						|
. "$GVM_ROOT/scripts/functions"
 | 
						|
 | 
						|
error_message=""
 | 
						|
 | 
						|
# Check for hg
 | 
						|
which hg &> /dev/null ||
 | 
						|
	error_message="${error_message}
 | 
						|
Could not find mercurial
 | 
						|
 | 
						|
  linux: apt-get install mercurial
 | 
						|
  mac:   brew install mercurial
 | 
						|
"
 | 
						|
# Check for ar
 | 
						|
which ar &> /dev/null ||
 | 
						|
	error_message="${error_message}
 | 
						|
Could not find binutils
 | 
						|
 | 
						|
  linux: apt-get install binutils
 | 
						|
"
 | 
						|
# Check for bison
 | 
						|
which bison &> /dev/null ||
 | 
						|
	error_message="${error_message}
 | 
						|
Could not find bison
 | 
						|
 | 
						|
  linux: apt-get install bison
 | 
						|
"
 | 
						|
# Check for gcc
 | 
						|
which gcc &> /dev/null ||
 | 
						|
	error_message="${error_message}
 | 
						|
Could not find gcc
 | 
						|
 | 
						|
  linux: apt-get install gcc
 | 
						|
"
 | 
						|
# Check for make
 | 
						|
which make &> /dev/null ||
 | 
						|
	error_message="${error_message}
 | 
						|
Could not find make
 | 
						|
 | 
						|
  linux: apt-get install make
 | 
						|
"
 | 
						|
 | 
						|
if [ -n "$error_message" ]; then
 | 
						|
	display_warning "$error_message"
 | 
						|
	exit 1
 | 
						|
else
 | 
						|
	# All good!
 | 
						|
	exit 0
 | 
						|
fi
 |