|
Revision 2701, 448 bytes
(checked in by pkwi, 2 years ago)
|
|
Snow Leopard install of the old tools require perl5.8
Will work my way through svn log to determine other patches needed for mcstas-1.12b, candidates include:
* gcc4 patches
* dependencies for distro versions of pgplot etc. (these work fine on Ubuntu 9.10) - no build from our side
* Careful look through the MPI stuff
Please tell me if I am missing anything obvious?
|
-
Property svn:executable set to
*
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | cd `dirname $0` |
|---|
| 4 | |
|---|
| 5 | # Determine if this is Snow Leopard (10.6) |
|---|
| 6 | SL=`sw_vers | grep 10.6 | wc -l` |
|---|
| 7 | |
|---|
| 8 | if [ $SL = 1 ] ; then |
|---|
| 9 | export PERL=/usr/bin/perl5.8.9 |
|---|
| 10 | else |
|---|
| 11 | export PERL=/usr/bin/perl |
|---|
| 12 | fi |
|---|
| 13 | |
|---|
| 14 | export BROWSER=/usr/bin/open |
|---|
| 15 | ./configure PERL=$PERL |
|---|
| 16 | make pgplot |
|---|
| 17 | make |
|---|
| 18 | echo |
|---|
| 19 | echo |
|---|
| 20 | echo Please enter your password to allow installation of McStas: |
|---|
| 21 | echo |
|---|
| 22 | sudo make install |
|---|
| 23 | echo Creating shortcut for McStas on your Desktop: |
|---|
| 24 | cp -rp McStas.app ~/Desktop/ |
|---|