summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorruki <[email protected]>2016-09-17 21:41:13 +0800
committerruki <[email protected]>2016-09-17 21:41:13 +0800
commitda0bdf127155da18709d4bd1d97bbda98094510a (patch)
tree19a0c305e19fe65edb0ab6fa9c071fc7265fc593 /install
parente5d0b0268345ab27e25c16b40c861b7c47fcbb6f (diff)
fix install error
Diffstat (limited to 'install')
-rwxr-xr-xinstall14
1 files changed, 7 insertions, 7 deletions
diff --git a/install b/install
index 9b863fccf..bd1352a44 100755
--- a/install
+++ b/install
@@ -21,25 +21,25 @@ echo installing to $prefix ...
# probe plat
uname=`uname`
if [ $uname = "MSVC" ]; then
- plat=msvc
+ plat=windows
elif [ $uname = "Darwin" ] || [ `uname | egrep -i darwin` ]; then
- plat=mac
+ plat=macosx
elif [ $uname = "Linux" ] || [ `uname | egrep -i linux` ]; then
plat=linux
elif [ `uname | egrep -i msys` ]; then
- plat=msvc
+ plat=windows
elif [ `uname | egrep -i cygwin` ]; then
- plat=msvc
+ plat=windows
else
plat=linux
fi
echo plat: $plat
# probe arch
-arch=x86
-if [ $plat = "linux" ] || [ $plat = "mac" ]; then
+arch=i386
+if [ $plat = "linux" ] || [ $plat = "macosx" ]; then
if [ `getconf LONG_BIT` = "64" ]; then
- arch=x64
+ arch=x86_64
fi
fi
echo arch: $arch