File tree Expand file tree Collapse file tree 1 file changed +14
-22
lines changed Expand file tree Collapse file tree 1 file changed +14
-22
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- system= " $( uname -s ) "
6
- machine= " $( uname -m ) "
7
-
8
- case " $system " in
9
- MINGW * )
10
- arch=win32 ;;
11
- Darwin)
12
- [[ " $( sysctl -n hw.optional. x86_64) " == 1 ]] && arch=x86_64-darwin || arch=universal-darwin ;;
13
- Linux)
14
- case " $machine " in
15
- x86_64) arch=x86_64 -linux ;;
16
- i386|i686) arch=i386-linux ;;
17
- esac
18
- ;;
5
+ case " $MACHTYPE " in
6
+ i[36]86- * -msys * )
7
+ echo win32 ;;
8
+ x86_64- * -darwin10. * )
9
+ echo x86_64-darwin ;;
10
+ i386- * -darwin * )
11
+ echo universal-darwin ;;
12
+ x86_64- * -linux * )
13
+ echo x86_64-linux ;;
14
+ i[36]86- * -linux * )
15
+ echo i386 -linux ;;
16
+ * )
17
+ echo " Could not determine native TeX Live architecture from system type $system and machine type $machine " >&2
18
+ exit 1
19
19
esac
20
-
21
- if [[ -n " $arch " ]]
22
- then
23
- echo " $arch "
24
- else
25
- echo " Could not determine native TeX Live architecture from system type $system and machine type $machine " >&2
26
- exit 1
27
- fi
You can’t perform that action at this time.
0 commit comments