source: install/g2full/g2postinstall.bat.template @ 4809

Last change on this file since 4809 was 4768, checked in by toby, 3 years ago

windows installation updates

File size: 1.2 KB
1echo "Finish up GSAS-II installation, version **Version**"
2set "python=%PREFIX%\python.exe"
3set "updatescript=%PREFIX%\GSASII\"
4REM create bootstrap batch file ================================================
5echo REM Commands to run GSAS-II load/update process > "%PREFIX%\start_G2_bootstrap.bat"
6echo call %PREFIX%\Scripts\activate >> "%PREFIX%\start_G2_bootstrap.bat"
7echo python %PREFIX%\GSASII\ >> "%PREFIX%\start_G2_bootstrap.bat"
8REM constructor fixups: missing empty directories & changed binary files =======
9REM mkdir -p $PREFIX/GSASII/.svn/tmp
10%PREFIX%\bin\svn revert -R %PREFIX%\GSASII\bindist
12REM update the GSAS-II package if possible, create shortcuts & byte-compile...
13call "%PREFIX%\Scripts\Activate"
14REM Now try to update to latest GSAS-II version (will fail if no network)
15"%python%" "%updatescript%" --noinstall
16REM create start GSAS-II batch file, etc.
17"%python%" "%updatescript%" --nonet
18REM create shortcut to start GSAS-II     =======================================
19echo REM Commands to run GSAS-II load/update process > "%PREFIX%\start_GSASII.bat"
20echo call %PREFIX%\Scripts\activate >> "%PREFIX%\start_GSASII.bat"
21echo python %PREFIX%\GSASII\ >> "%PREFIX%\start_GSASII.bat"
22set errorlevel=0
23exit 0
Note: See TracBrowser for help on using the repository browser.