source: install/g2full/g2postinstall.sh @ 4745

Last change on this file since 4745 was 4745, checked in by toby, 10 months ago

more work on install for OSX

File size: 1.5 KB
Line 
1#!/bin/bash
2echo "Finish up GSAS-II installation"
3# create bootstrap script
4echo "# Commands to run GSAS-II load/update process" > $PREFIX/start_G2_bootstrap.sh
5echo "source $PREFIX/bin/activate" >> $PREFIX/start_G2_bootstrap.sh
6echo "$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py" >> $PREFIX/start_G2_bootstrap.sh
7# in case constructor changed the binary files
8$PREFIX/bin/svn revert $PREFIX/GSASII/bindist/*
9#
10# "install" the GSAS-II package (create shortcuts, byte-compile...)
11#
12echo "launching bootstrap process"
13#$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet > $PREFIX/GSASII/conda_inst.log 2>&1
14$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet 2> $PREFIX/GSASII/conda_postinst.log
15# Now try to update to latest GSAS-II version (will fail if no network)
16#$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall >> $PREFIX/GSASII/conda_inst.log 2>&1
17$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall 2>> $PREFIX/GSASII/conda_postinst.log
18#
19# create start script
20echo "# Commands to start GSAS-II" > $PREFIX/start_GSASII.sh
21echo "source $PREFIX/bin/activate" >> $PREFIX/start_GSASII.sh
22if [ -e $PREFIX/bin/pythonw ]
23then
24   echo "$PREFIX/bin/pythonw $PREFIX/GSASII/GSASII.py" >> $PREFIX/start_GSASII.sh
25else
26   echo "$PREFIX/bin/python $PREFIX/GSASII/GSASII.py" >> $PREFIX/start_GSASII.sh
27fi
28#create the GSAS-II app or Desktop icon (note that scripts run only on correct platform)
29#$PREFIX/bin/python $PREFIX/GSASII/makeMacApp.py
30#$PREFIX/bin/python $PREFIX/GSASII/makeLinux.py
31echo "GSAS-II bootstrap completed"
Note: See TracBrowser for help on using the repository browser.