You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							24 lines
						
					
					
						
							540 B
						
					
					
				
			
		
		
	
	
							24 lines
						
					
					
						
							540 B
						
					
					
				#!/usr/bin/env bash
 | 
						|
 | 
						|
if [ -z "$1" ]
 | 
						|
then
 | 
						|
   printf "Usage: setup.sh install_directory [dependencies].\n" 1>&2
 | 
						|
   exit 1
 | 
						|
fi
 | 
						|
 | 
						|
# $2 netcdf-c hdf5
 | 
						|
cd $(dirname $0)
 | 
						|
libname=$(basename $(pwd))
 | 
						|
mkdir -p build
 | 
						|
cd build
 | 
						|
cmake ../ -DCMAKE_INSTALL_PREFIX="$1"
 | 
						|
make install
 | 
						|
 | 
						|
# Moving folders.
 | 
						|
mv "$1/include/eigen3/unsupported/Eigen" "$1/include/eigen3/Eigen/unsupported"
 | 
						|
rm -R "$1/include/eigen3/unsupported"
 | 
						|
mv "$1/include/eigen3/Eigen" "$1/include/"
 | 
						|
rm -R "$1/include/eigen3"
 | 
						|
mv "$1/include/Eigen" "$1/"
 | 
						|
rmdir "$1/include"
 | 
						|
mv "$1/Eigen" "$1/include" |