File: generate.sh

package info (click to toggle)
p7zip 9.20.1~dfsg.1-4.1%2Bdeb8u3
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 13,368 kB
  • sloc: cpp: 104,670; ansic: 12,930; makefile: 1,899; sh: 1,031; asm: 159
file content (37 lines) | stat: -rwxr-xr-x 788 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

doit()
{
	cd ..
	rm -fr "$3.$1"
	mkdir "$3.$1"
	cd "$3.$1"
	cp ../CMAKE/$4 CMakeLists.txt
	
	mkdir 7za 7zFM 7zG Format7zFree
	
	cp ../CMAKE/CMakeLists_7za.txt  7za/CMakeLists.txt
	
	cp ../CMAKE/CMakeLists_7zFM.txt 7zFM/CMakeLists.txt
	
	cp ../CMAKE/CMakeLists_7zG.txt 7zG/CMakeLists.txt
	
	cp ../CMAKE/CMakeLists_Format7zFree.txt Format7zFree/CMakeLists.txt
	
	
	cmake -G "$2" -DCMAKE_BUILD_TYPE=Debug 
	#cmake -G "$2" -DCMAKE_BUILD_TYPE=Release 
}

CURDIR=$PWD

cd $CURDIR
doit "Unix" "Unix Makefiles"  "P7ZIP" "CMakeLists_ALL.txt"

cd $CURDIR
doit "codeblocks" "CodeBlocks - Unix Makefiles"  "P7ZIP" "CMakeLists_ALL.txt"

cd $CURDIR
doit "KDevelop3" "KDevelop3"  "P7ZIP" "CMakeLists_ALL.txt"

cd $CURDIR
doit "EclipseCDT4" "Eclipse CDT4 - Unix Makefiles"  "P7ZIP" "CMakeLists_ALL.txt"