source: install/g2full/g2postinstall.sh.template @ 4771

Last change on this file since 4771 was 4759, checked in by toby, 11 months ago

wx4.1 & mpl3.3 fixes

File size: 1.6 KB
Line 
1#!/bin/bash
2echo "Finish up GSAS-II installation, version **Version**"
3# create shortcut to 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# update the GSAS-II package if possible, create shortcuts & byte-compile... ================
12echo "launching bootstrap process"
13# 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$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --noinstall
16# finish installation
17#$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet > $PREFIX/GSASII/conda_inst.log 2>&1
18$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet
19# create shortcut to start GSAS-II     =======================================================
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
28echo "GSAS-II installer, version **Version** completed"
29#MACOnly# echo "*** Viewing GSAS-II app in Finder; you may wish to drag it to the dock.***"
Note: See TracBrowser for help on using the repository browser.