|
a |
|
b/bash_Start_DNNGP.sh |
|
|
1 |
#!/bin/bash |
|
|
2 |
eval "$(conda shell.bash hook)" |
|
|
3 |
conda activate DNNGP3 |
|
|
4 |
if [ "$1" == "L" ]; then |
|
|
5 |
chmod 777 -R * && ./Scripts/DNNGP-Linux |
|
|
6 |
elif [ "$1" == "I" ]; then |
|
|
7 |
if xattr -d com.apple.quarantine ./Scripts/DNNGP-intel.app; then |
|
|
8 |
: |
|
|
9 |
else |
|
|
10 |
: |
|
|
11 |
fi |
|
|
12 |
chmod -R 777 * |
|
|
13 |
open ./Scripts/DNNGP-intel.app |
|
|
14 |
elif [ "$1" == "M" ]; then |
|
|
15 |
if xattr -d com.apple.quarantine ./Scripts/M1/DNNGP-M1.app; then |
|
|
16 |
: |
|
|
17 |
else |
|
|
18 |
: |
|
|
19 |
fi |
|
|
20 |
chmod -R 777 * |
|
|
21 |
open ./Scripts/M1/DNNGP-M1.app |
|
|
22 |
else |
|
|
23 |
echo "Invalid parameter: $1" |
|
|
24 |
echo "Three parameters are available: L, I, and M" |
|
|
25 |
echo "L:For Linux I:For Mac-Intel M:For Mac-M1" |
|
|
26 |
fi |