source: install/g2full/g2postinstall.sh @ 4736

Last change on this file since 4736 was 4736, checked in by toby, 9 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#
8# "install" the GSAS-II package (create shortcuts, byte-compile...)
9#
10#$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet > /tmp/bootstrap1.log 2>> $PREFIX/GSASII/conda_inst.log 2>&1
11# Now try to update to latest GSAS-II version (will fail if no network)
12#$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall > /tmp/bootstrap2.log 2>> $PREFIX/GSASII/conda_inst.log 2>&1
13# create start script
14echo "# Commands to start GSAS-II" > $PREFIX/start_GSASII.sh
15echo "source $PREFIX/bin/activate" >> $PREFIX/start_GSASII.sh
16if [ -e $PREFIX/bin/pythonw ]
17then
18   echo "$PREFIX/bin/pythonw $PREFIX/GSASII/GSASII.py" >> $PREFIX/start_GSASII.sh
19else
20   echo "$PREFIX/bin/python $PREFIX/GSASII/GSASII.py" >> $PREFIX/start_GSASII.sh
21fi
22# in case constructor changed the binary files
23$PREFIX/bin/svn revert $PREFIX/GSASII/bindist/*
24#create the GSAS-II app or Desktop icon (note that scripts run only on correct platform)
25$PREFIX/bin/python $PREFIX/GSASII/makeMacApp.py
26$PREFIX/bin/python $PREFIX/GSASII/makeLinux.py
Note: See TracBrowser for help on using the repository browser.