forked from res15-opengl/res15-opengl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenerate_project_files.fish
executable file
·43 lines (29 loc) · 1.1 KB
/
generate_project_files.fish
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
38
39
40
41
42
#!/usr/local/bin/fish
set ofBase ../..
set examplesBase (pwd)
function generateProjectFiles
echo "Generating Project Files for: $argv "
eval ./../devApps/projectGenerator/bin/emptyExampleDebug.app/Contents/MacOS/emptyExampleDebug "$examplesBase/$argv";
end
function removeProjectFiles
echo "Removing Project Files for: $argv "
# vs2012 files
rm -f "$examplesBase/$argv/$argv.sln";
rm -f "$examplesBase/$argv/$argv.vcxproj";
rm -f "$examplesBase/$argv/$argv.vcxproj.filters";
rm -f "$examplesBase/$argv/$argv.vcxproj.user";
rm -f "$examplesBase/$argv/icon.rc";
# xcode project files
rm -Rf "$examplesBase/$argv/$argv.xcodeproj";
rm -f "$examplesBase/$argv/openFrameworks-Info.plist";
rm -f "$examplesBase/$argv/Project.xcconfig";
# codeblocks project files
rm -f "$examplesBase/$argv/$argv.cbp";
rm -f "$examplesBase/$argv/$argv.workspace";
end
set platforms "--osx --linux64 --vs"
for currentExample in (ls -d */ | cut -f1 -d'/'); # commands; end
# echo $currentExample
# removeProjectFiles $currentExample
generateProjectFiles $currentExample $platforms
end