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