source: install/g2complete/post-link.bat @ 4704

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

now work on g2complete

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1echo "Complete installation GSAS-II and update from APS subversion server, if on network"
2set "python=%PREFIX%\python.exe"
3set "updatescript=%PREFIX%\GSASII\bootstrap.py"
4REM create bootstrap batch file
5echo REM Commands to run GSAS-II load/update process > "%CONDA_ROOT%\start_G2_bootstrap.bat"
6echo call %CONDA_ROOT%\Scripts\activate %CONDA_DEFAULT_ENV% >> "%CONDA_ROOT%\start_G2_bootstrap.bat"
7echo python %PREFIX%\GSASII\bootstrap.py >> "%CONDA_ROOT%\start_G2_bootstrap.bat"
8REM "install" the GSAS-II package (create shortcuts, byte-compile...)
9call "%PREFIX%\Scripts\Activate"
10"%python%" "%updatescript%" --nonet > "%PREFIX%\GSASII\InstallLog.txt"
11REM Now try to update to latest GSAS-II version (will fail if no network)
12"%python%" "%updatescript%" --noinstall > "%PREFIX%\GSASII\UpdateLog.txt"
13REM# create start GSAS-II batch file
14echo REM Commands to run GSAS-II load/update process > "%CONDA_ROOT%\start_GSASII.bat"
15echo call %CONDA_ROOT%\Scripts\activate %CONDA_DEFAULT_ENV% >> "%CONDA_ROOT%\start_GSASII.bat"
16echo python %PREFIX%\GSASII\GSASII.py >> "%CONDA_ROOT%\start_GSASII.bat"
17REM pause
18set errorlevel=0
19exit 0
Note: See TracBrowser for help on using the repository browser.