-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpolymake.start
More file actions
executable file
·28 lines (23 loc) · 1.12 KB
/
polymake.start
File metadata and controls
executable file
·28 lines (23 loc) · 1.12 KB
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
#!/bin/bash
echo -ne "\033]0;polymake\007"
dir=$(cd "$(dirname "$0")"; pwd)
ResourcesDir="${dir%MacOS}Resources"
# the user might have a 32bit version of fink which conflicts with 64bit polymake, so
unset VERSIONER_PERL_PREFER_32_BIT
export PATH=${ResourcesDir}/polymake/bin:${ResourcesDir}/bin:${ResourcesDir}/perl5/bin${PATH+:$PATH}
#export POLYMAKE_CONFIG_PATH="$ResourcesDir/config;user"
export POLYMAKE_USER_DIR="${HOME}/.polymake-macbundle"
export POLYMAKE_BASE_PATH=$ResourcesDir/polymake
export DYLD_LIBRARY_PATH=$ResourcesDir/lib:$ResourcesDir/include/boost_1_66_0/${DYLD_LIBRARY_PATH+:$DYLD_LIBRARY_PATH}
export CPLUS_INCLUDE_PATH=$ResourcesDir/include/
export CFLAGS=-I$ResourcesDir/include/
export CPPFLAGS=-I$ResourcesDir/include/
export PERL5LIB="$ResourcesDir/perl5:$ResourcesDir/perl5/lib/perl5:$ResourcesDir/perl5/lib/perl5/darwin-thread-multi-2level/\
:$ResourcesDir/polymake/lib/polymake/lib/\
:$ResourcesDir/polymake/lib/polymake/perlx/\
:$ResourcesDir/polymake/share/polymake/perllib/\
${PERL5LIB+:$PERL5LIB}"
# seems necessary, why?
dir=$(cd "$(dirname "$0")"; pwd)
# start polymake
$ResourcesDir/polymake/bin/polymake "$@"