source: gsas/win/dist/bootstrap.bat

Last change on this file was 1196, checked in by toby, 10 years ago

revised for proxy use

File size: 2.5 KB
Line 
1@REM this script must be run from the GSAS installation directory
2@echo ***********************************************************
3@echo Please enter proxy server information, if required for your
4@echo web environment. Note that the proxy address will be a
5@echo computer address (proxy.mysite.com) and the proxy port will
6@echo number, such as 80. If not needed or unsure, leave the
7@echo next two responses blank.
8@echo ***********************************************************
9@if exist proxyinfo.txt del proxyinfo.txt
10@set proxy=
11@set proxp=
12@set proxadd=
13@set /p proxadd="Enter the proxy address [none needed]: "
14@if (%proxadd%) == () goto start
15@set /p prxport="Enter the proxy port [8080]: "
16@if (%prxport%) == () set prxport=8080
17@echo %proxadd% > proxyinfo.txt
18@echo %prxport% >> proxyinfo.txt
19@set proxy=--config-option servers:global:http-proxy-host=%proxadd%
20@set proxp=--config-option servers:global:http-proxy-port=%prxport%
21@echo Using proxy settings:
22@set proxy
23@set proxp
24:start
25@echo *****************************************
26@echo Press return to start GSAS/EXPGUI install
27@echo *****************************************
28@pause
29@REM do on initial install
30@mkdir MyWork
31@ECHO Loading GSAS from subversion server
32.\svn\bin\svn co https://subversion.xor.aps.anl.gov/EXPGUI/gsas/all . %proxy% %proxp%
33@if exist expgui goto getexpgui
34@ECHO *************************************************************************
35@ECHO                                 Install failed!
36@ECHO *************************************************************************
37@ECHO Load from repository failed. Perhaps internet access is blocked or down.
38@echo Please check with your network provider if a proxy is needed or verify
39@echo your proxy settings.
40@ECHO *************************************************************************
41@pause
42@exit
43:getexpgui
44@echo loading EXPGUI from repository
45.\svn\bin\svn switch https://subversion.xor.aps.anl.gov/EXPGUI/trunk/ expgui %proxy% %proxp%
46@echo loading GSAS programs
47.\svn\bin\svn switch https://subversion.xor.aps.anl.gov/EXPGUI/gsas/win/exe/ exe %proxy% %proxp%
48@echo loading pgplot
49.\svn\bin\svn switch https://subversion.xor.aps.anl.gov/EXPGUI/gsas/win/pgl/ pgl %proxy% %proxp%
50@echo **************************************************
51@echo Install has completed. EXPGUI will now be started.
52@echo **************************************************
53@pause
54%COMSPEC% /c "start exe\ncnrpack.exe expgui\expgui"
55exit
Note: See TracBrowser for help on using the repository browser.