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

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

gsas2pkg updated buggy on Linux

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