mirror of
				https://git.proxmox.com/git/libgit2
				synced 2025-11-04 10:33:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			798 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			798 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
set -e
 | 
						|
cd `dirname "$0"`/..
 | 
						|
if [ "$ARCH" = "32" ]; then
 | 
						|
  echo 'C:\MinGW\ /MinGW' > /etc/fstab
 | 
						|
elif [ "$ARCH" = "i686" ]; then
 | 
						|
  f=i686-4.9.2-release-win32-sjlj-rt_v3-rev1.7z
 | 
						|
  if ! [ -e $f ]; then
 | 
						|
    curl -LsSO http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/sjlj/$f
 | 
						|
  fi
 | 
						|
  7z x $f > /dev/null
 | 
						|
  mv mingw32 /MinGW
 | 
						|
else
 | 
						|
  f=x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z
 | 
						|
  if ! [ -e $f ]; then
 | 
						|
    curl -LsSO http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/$f
 | 
						|
  fi
 | 
						|
  7z x $f > /dev/null
 | 
						|
  mv mingw64 /MinGW
 | 
						|
fi
 | 
						|
cd build
 | 
						|
cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON .. -G"$GENERATOR"
 | 
						|
cmake --build . --config RelWithDebInfo
 |