getBinaries.bat 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @echo off
  2. rem /*##############################################################################
  3. rem
  4. rem HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  5. rem
  6. rem Licensed under the Apache License, Version 2.0 (the "License");
  7. rem you may not use this file except in compliance with the License.
  8. rem You may obtain a copy of the License at
  9. rem
  10. rem http://www.apache.org/licenses/LICENSE-2.0
  11. rem
  12. rem Unless required by applicable law or agreed to in writing, software
  13. rem distributed under the License is distributed on an "AS IS" BASIS,
  14. rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. rem See the License for the specific language governing permissions and
  16. rem limitations under the License.
  17. rem ############################################################################## */
  18. set syntax=no
  19. if "%1" == "-h" set syntax=yes
  20. if "%2" == "" set syntax=yes
  21. if "%syntax%" == "yes" (
  22. echo This batch file copies out soapplus.exe and/or xalan.exe along with
  23. echo their dependencies to the specified directory.
  24. echo getBinaries ^<srcRoot^> ^<destDir^>
  25. echo for e.g., getBinaries \scapps_dev\project\newecl .\binaries.
  26. exit /b 0
  27. )
  28. setlocal enabledelayedexpansion
  29. set srcRoot=%1
  30. set dest=%2
  31. set release=debug
  32. mkdir %dest% 2> nul
  33. set xalandir=%srcRoot%\system\xalan
  34. set suffix=
  35. if "%release%" == "debug" set suffix=D
  36. :ask
  37. set /p resp=Would you like to get soapplus and its dependencies? [y/n]:
  38. if "%resp%" == "" goto ask
  39. if not "%resp%" == "y" goto xalan
  40. for %%i in (jlib.dll xmllib.dll securesocket.dll soapplus.exe) do (
  41. echo copy %srcRoot%\bin\%release%\%%i %dest%
  42. copy %srcRoot%\bin\%release%\%%i %dest%
  43. )
  44. for %%i in (libeay32 ssleay32) do (
  45. echo copy %srcRoot%\system\openssl\out32dll\%%i.dll %dest%
  46. copy %srcRoot%\system\openssl\out32dll\%%i.dll %dest%
  47. )
  48. for %%i in (Xalan-C_1_8 XalanMessages_1_8) do (
  49. echo copy %xalandir%\bin\%%i%suffix%.dll %dest%
  50. copy %xalandir%\xalan-c\bin\%%i%suffix%.dll %dest%
  51. )
  52. echo copy %xalandir%\xerces-c_2_5_0%suffix%.dll %dest%
  53. copy %xalandir%\xerces-c\bin\xerces-c_2_5_0%suffix%.dll %dest%
  54. PATH=binaries;%PATH%
  55. soapplus -h
  56. :xalan
  57. set resp=
  58. set /p resp=Would you like to get xalan and its dependencies? [y/n]:
  59. if "%resp%" == "" goto xalan
  60. if not "%resp%" == "y" goto done
  61. for %%i in (DOMSupport PlatformSupport XalanDOM XalanExtensions) do (
  62. echo copy %xalandir%\%%i.dll %dest%
  63. copy %xalandir%\%%i.dll %dest%
  64. )
  65. for %%i in (XalanSourceTree XalanTransformer XMLSupport XPath XSLT XercesParserLiaison) do (
  66. echo copy %xalandir%\%%i.dll %dest%
  67. copy %xalandir%\%%i.dll %dest%
  68. )
  69. echo copy %xalandir%\xerces-c_1_6_0.dll %dest%
  70. copy %xalandir%\xerces-c_1_6_0.dll %dest%
  71. echo copy %xalandir%\xalan.exe %dest%\xalan.exe
  72. copy %xalandir%\xalan.exe %dest%\xalan.exe
  73. for %%i in (Xalan-C_1_8 XalanMessages_1_8) do (
  74. if not exist %dest%\%%i.dll (
  75. echo copy %xalandir%\bin\%%i.dll %dest%
  76. copy %xalandir%\xalan-c\bin\%%i.dll %dest%
  77. )
  78. )
  79. binaries\xalan
  80. :done