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

Last change on this file since 5421 was 5421, checked in by toby, 6 months ago

work on mac build

File size: 1.7 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 ======================
8if [[ (! -d $PREFIX/GSASII/.svn/tmp) ]]
9then
10    mkdir -p $PREFIX/GSASII/.svn/tmp
11fi
12$PREFIX/bin/svn revert $PREFIX/GSASII/bindist/*
13#
14# update the GSAS-II package if possible, create shortcuts & byte-compile... ================
15echo "launching bootstrap process"
16# 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# finish installation
20#$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet > $PREFIX/GSASII/conda_inst.log 2>&1
21 $PREFIX/bin/python $PREFIX/GSASII/bootstrap.py --nonet
22# create shortcut to start GSAS-II     =======================================================
23echo "# Commands to start GSAS-II" > $PREFIX/start_GSASII.sh
24echo "source $PREFIX/bin/activate" >> $PREFIX/start_GSASII.sh
25if [ -e $PREFIX/bin/pythonw ]
26then
27   echo "$PREFIX/bin/pythonw $PREFIX/GSASII/GSASII.py" >> $PREFIX/start_GSASII.sh
28else
29   echo "$PREFIX/bin/python $PREFIX/GSASII/GSASII.py" >> $PREFIX/start_GSASII.sh
30fi
31echo "GSAS-II installer, version **Version** completed"
32#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.