source: install/g2pkg/post-link.sh @ 4700

Last change on this file since 4700 was 4700, checked in by toby, 17 months ago

testing w/gsas2pkg redo

File size: 1.1 KB
Line 
1#!/bin/bash
2mkdir -p $PREFIX/GSASII
3echo "Preparing to install GSAS-II from APS subversion server" > $PREFIX/GSASII/conda_inst.log
4# create bootstrap script
5echo "# Commands to run GSAS-II load/update process" > $CONDA_ROOT/start_G2_bootstrap.sh
6echo "source $CONDA_ROOT/bin/activate $CONDA_DEFAULT_ENV" >> $CONDA_ROOT/start_G2_bootstrap.sh
7echo "$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py" >> $CONDA_ROOT/start_G2_bootstrap.sh
8# install and run the bootstrap
9cp $PREFIX/bin/gsas2-install.py $PREFIX/GSASII/bootstrap.py > $PREFIX/GSASII/conda_inst.log 2>&1
10echo $PREFIX/bin/python  >> $PREFIX/GSASII/conda_inst.log 2>&1
11$PREFIX/bin/python $PREFIX/GSASII/bootstrap.py >> $PREFIX/GSASII/conda_inst.log 2>&1
12# create start script
13echo "# Commands to start GSAS-II" > $CONDA_ROOT/start_GSASII.sh
14echo "source $CONDA_ROOT/bin/activate $CONDA_DEFAULT_ENV" >> $CONDA_ROOT/start_GSASII.sh
15if [ -e $PREFIX/bin/pythonw ]
16then
17   echo "$PREFIX/bin/pythonw $PREFIX/GSASII/GSASII.py" >> $CONDA_ROOT/start_GSASII.sh
18else
19   echo "$PREFIX/bin/python $PREFIX/GSASII/GSASII.py" >> $CONDA_ROOT/start_GSASII.sh
20fi
Note: See TracBrowser for help on using the repository browser.