source: install/g2full/g2postinstall.sh @ 4740

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

more install work

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# 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#
12$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet > $PREFIX/GSASII/conda_inst.log 2>&1
13# Now try to update to latest GSAS-II version (will fail if no network)
14$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall >> $PREFIX/GSASII/conda_inst.log 2>&1
15#
16# create start script
17echo "# Commands to start GSAS-II" > $PREFIX/start_GSASII.sh
18echo "source $PREFIX/bin/activate" >> $PREFIX/start_GSASII.sh
19if [ -e $PREFIX/bin/pythonw ]
20then
21   echo "$PREFIX/bin/pythonw $PREFIX/GSASII/GSASII.py" >> $PREFIX/start_GSASII.sh
22else
23   echo "$PREFIX/bin/python $PREFIX/GSASII/GSASII.py" >> $PREFIX/start_GSASII.sh
24fi
25#create the GSAS-II app or Desktop icon (note that scripts run only on correct platform)
26#$PREFIX/bin/python $PREFIX/GSASII/makeMacApp.py
27#$PREFIX/bin/python $PREFIX/GSASII/makeLinux.py
28echo "GSAS-II bootstrap completed" >> $PREFIX/.messages.txt
Note: See TracBrowser for help on using the repository browser.