source: install/g2full/g2postinstall.sh @ 4748

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

still more work on install for OSX

File size: 1.3 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# constructor fixups, missing empty directories & changed binary files
8mkdir -p $PREFIX/GSASII/.svn/tmp
9$PREFIX/bin/svn revert $PREFIX/GSASII/bindist/*
10#
11# "install" the GSAS-II package (create shortcuts, byte-compile...)
12#
13echo "launching bootstrap process"
14#$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet > $PREFIX/GSASII/conda_inst.log 2>&1
15$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet
16# Now try to update to latest GSAS-II version (will fail if no network)
17#$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall >> $PREFIX/GSASII/conda_inst.log 2>&1
18$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall
19#
20# create start script
21echo "# Commands to start GSAS-II" > $PREFIX/start_GSASII.sh
22echo "source $PREFIX/bin/activate" >> $PREFIX/start_GSASII.sh
23if [ -e $PREFIX/bin/pythonw ]
24then
25   echo "$PREFIX/bin/pythonw $PREFIX/GSASII/GSASII.py" >> $PREFIX/start_GSASII.sh
26else
27   echo "$PREFIX/bin/python $PREFIX/GSASII/GSASII.py" >> $PREFIX/start_GSASII.sh
28fi
29echo "GSAS-II bootstrap completed"
Note: See TracBrowser for help on using the repository browser.