Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / BUILDER / makefile / private / script / workspace_os_management.sh
1 #!/bin/bash
2 #
3 # Version: 0.0.2
4 #
5
6 #-----------------------------------------------
7 # init
8 #-----------------------------------------------
9
10 #stop des erreur
11 set -e
12
13 #racine workspace
14 cd ../../../..
15 #ls
16 #sleep 100000
17
18 workspaceRoot=$(pwd)
19
20
21 #-----------------------------------------------
22 # os management
23 #-----------------------------------------------
24
25 echo "--------------------------------------------------------------------------------------------------------"
26 echo "[OS Management]"
27 echo ""
28
29 if [ $(uname) == "Linux" ]
30 then
31 OS=Linux
32 echo "Linux detect"
33 else
34 OS=Win
35 echo "Windows detect"
36 fi
37
38 if [ ${OS} == "Linux" ]
39 then
40 echo "Linux init"
41 source /usr/local/etc/cbi/dev/init/cbiMakeInit.sh
42 else
43 echo "Windows init"
44 #cmd.exe //c G:/CBI/HEARC/SoftLocal/ScriptLaucher/makefile/makeInit.cmd#ko why?
45 fi
46
47 echo "--------------------------------------------------------------------------------------------------------"
48 echo ""
49 echo ""
50 echo ""
51 echo ""
52
53 #-----------------------------------------------
54 # end
55 #-----------------------------------------------
56
57