gen_server_ecl.bat 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. if exist "..\..\src\lib\Libecl\ecl_job_attr_def.c" (
  2. echo "File present removing earlier generated file!"
  3. del /F /Q "..\..\src\lib\Libecl\ecl_job_attr_def.c"
  4. if %ERRORLEVEL% NEQ 0 (
  5. echo "delete file not a success"
  6. )
  7. echo. > "..\..\src\lib\Libecl\ecl_job_attr_def.c"
  8. )
  9. if exist "..\..\src\lib\Libattr\job_attr_def.c" (
  10. echo "Server file present removing earlier generated file!"
  11. del /F /Q "..\..\src\lib\Libattr\job_attr_def.c"
  12. if %ERRORLEVEL% NEQ 0 (
  13. echo "delete file not a success"
  14. )
  15. echo. > "..\..\src\lib\Libattr\job_attr_def.c"
  16. )
  17. echo "Parsing the Master file for server and ecl"
  18. "..\..\..\binaries\python\python.exe" "..\..\buildutils\attr_parser.py" -m "..\..\src\lib\Libattr\master_job_attr_def.xml" -s "..\..\src\lib\Libattr\job_attr_def.c" -e "..\..\src\lib\Libecl\ecl_job_attr_def.c" -a job
  19. if %ERRORLEVEL% NEQ 0 (
  20. echo "generation of file not a success"
  21. exit 1
  22. )
  23. if exist "..\..\src\lib\Libecl\ecl_svr_attr_def.c" (
  24. echo "File present removing earlier generated file!"
  25. del /F /Q "..\..\src\lib\Libecl\ecl_svr_attr_def.c"
  26. if %ERRORLEVEL% NEQ 0 (
  27. echo "delete file not a success"
  28. )
  29. echo. > "..\..\src\lib\Libecl\ecl_svr_attr_def.c"
  30. )
  31. if exist "..\..\src\lib\Libattr\svr_attr_def.c" (
  32. echo "Server file present removing earlier generated file!"
  33. del /F /Q "..\..\src\lib\Libattr\svr_attr_def.c"
  34. if %ERRORLEVEL% NEQ 0 (
  35. echo "delete file not a success"
  36. )
  37. echo. > "..\..\src\lib\Libattr\svr_attr_def.c"
  38. )
  39. echo "Parsing the Master file for server and ecl"
  40. "..\..\..\binaries\python\python.exe" "..\..\buildutils\attr_parser.py" -m "..\..\src\lib\Libattr\master_svr_attr_def.xml" -s "..\..\src\lib\Libattr\svr_attr_def.c" -e "..\..\src\lib\Libecl\ecl_svr_attr_def.c" -a server
  41. if %ERRORLEVEL% NEQ 0 (
  42. echo "generation of file not a success"
  43. exit 1
  44. )
  45. if exist "..\..\src\lib\Libecl\ecl_node_attr_def.c" (
  46. echo "File present removing earlier generated file!"
  47. del /F /Q "..\..\src\lib\Libecl\ecl_node_attr_def.c"
  48. if %ERRORLEVEL% NEQ 0 (
  49. echo "delete file not a success"
  50. )
  51. echo. > "..\..\src\lib\Libecl\ecl_node_attr_def.c"
  52. )
  53. if exist "..\..\src\lib\Libattr\node_attr_def.c" (
  54. echo "Server file present removing earlier generated file!"
  55. del /F /Q "..\..\src\lib\Libattr\node_attr_def.c"
  56. if %ERRORLEVEL% NEQ 0 (
  57. echo "delete file not a success"
  58. )
  59. echo. > "..\..\src\lib\Libattr\node_attr_def.c"
  60. )
  61. echo "Parsing the Master file for server and ecl"
  62. "..\..\..\binaries\python\python.exe" "..\..\buildutils\attr_parser.py" -m "..\..\src\lib\Libattr\master_node_attr_def.xml" -s "..\..\src\lib\Libattr\node_attr_def.c" -e "..\..\src\lib\Libecl\ecl_node_attr_def.c" -a node
  63. if %ERRORLEVEL% NEQ 0 (
  64. echo "generation of file not a success"
  65. exit 1
  66. )
  67. if exist "..\..\src\lib\Libecl\ecl_resc_def_all.c" (
  68. echo "File present removing earlier generated file!"
  69. del /F /Q "..\..\src\lib\Libecl\ecl_resc_def_all.c"
  70. if %ERRORLEVEL% NEQ 0 (
  71. echo "delete file not a success"
  72. )
  73. echo. > "..\..\src\lib\Libecl\ecl_resc_def_all.c"
  74. )
  75. if exist "..\..\src\lib\Libattr\resc_def_all.c" (
  76. echo "Server file present removing earlier generated file!"
  77. del /F /Q "..\..\src\lib\Libattr\resc_def_all.c"
  78. if %ERRORLEVEL% NEQ 0 (
  79. echo "delete file not a success"
  80. )
  81. echo. > "..\..\src\lib\Libattr\resc_def_all.c"
  82. )
  83. echo "Parsing the Master file for server and ecl"
  84. "..\..\..\binaries\python\python.exe" "..\..\buildutils\attr_parser.py" -m "..\..\src\lib\Libattr\master_resc_def_all.xml" -s "..\..\src\lib\Libattr\resc_def_all.c" -e "..\..\src\lib\Libecl\ecl_resc_def_all.c" -a resc
  85. if %ERRORLEVEL% NEQ 0 (
  86. echo "generation of file not a success"
  87. exit 1
  88. )
  89. if exist "..\..\src\lib\Libecl\ecl_queue_attr_def.c" (
  90. echo "File present removing earlier generated file!"
  91. del /F /Q "..\..\src\lib\Libecl\ecl_queue_attr_def.c"
  92. if %ERRORLEVEL% NEQ 0 (
  93. echo "delete file not a success"
  94. )
  95. echo. > "..\..\src\lib\Libecl\ecl_queue_attr_def.c"
  96. )
  97. if exist "..\..\src\lib\Libattr\queue_attr_def.c" (
  98. echo "Server file present removing earlier generated file!"
  99. del /F /Q "..\..\src\lib\Libattr\queue_attr_def.c"
  100. if %ERRORLEVEL% NEQ 0 (
  101. echo "delete file not a success"
  102. )
  103. echo. > "..\..\src\lib\Libattr\queue_attr_def.c"
  104. )
  105. echo "Parsing the Master file for server and ecl"
  106. "..\..\..\binaries\python\python.exe" "..\..\buildutils\attr_parser.py" -m "..\..\src\lib\Libattr\master_queue_attr_def.xml" -s "..\..\src\lib\Libattr\queue_attr_def.c" -e "..\..\src\lib\Libecl\ecl_queue_attr_def.c" -a queue
  107. if %ERRORLEVEL% NEQ 0 (
  108. echo "generation of file not a success"
  109. exit 1
  110. )
  111. if exist "..\..\src\lib\Libecl\ecl_resv_attr_def.c" (
  112. echo "File present removing earlier generated file!"
  113. del /F /Q "..\..\src\lib\Libecl\ecl_resv_attr_def.c"
  114. if %ERRORLEVEL% NEQ 0 (
  115. echo "delete file not a success"
  116. )
  117. echo. > "..\..\src\lib\Libecl\ecl_resv_attr_def.c"
  118. )
  119. if exist "..\..\src\lib\Libattr\resv_attr_def.c" (
  120. echo "Server file present removing earlier generated file!"
  121. del /F /Q "..\..\src\lib\Libattr\resv_attr_def.c"
  122. if %ERRORLEVEL% NEQ 0 (
  123. echo "delete file not a success"
  124. )
  125. echo. > "..\..\src\lib\Libattr\resv_attr_def.c"
  126. )
  127. echo "Parsing the Master file for server and ecl"
  128. "..\..\..\binaries\python\python.exe" "..\..\buildutils\attr_parser.py" -m "..\..\src\lib\Libattr\master_resv_attr_def.xml" -s "..\..\src\lib\Libattr\resv_attr_def.c" -e "..\..\src\lib\Libecl\ecl_resv_attr_def.c" -a resv
  129. if %ERRORLEVEL% NEQ 0 (
  130. echo "generation of file not a success"
  131. exit 1
  132. )
  133. if exist "..\..\src\lib\Libecl\ecl_sched_attr_def.c" (
  134. echo "File present removing earlier generated file!"
  135. del /F /Q "..\..\src\lib\Libecl\ecl_sched_attr_def.c"
  136. if %ERRORLEVEL% NEQ 0 (
  137. echo "delete file not a success"
  138. )
  139. echo. > "..\..\src\lib\Libecl\ecl_sched_attr_def.c"
  140. )
  141. if exist "..\..\src\lib\Libattr\sched_attr_def.c" (
  142. echo "Server file present removing earlier generated file!"
  143. del /F /Q "..\..\src\lib\Libattr\sched_attr_def.c"
  144. if %ERRORLEVEL% NEQ 0 (
  145. echo "delete file not a success"
  146. )
  147. echo. > "..\..\src\lib\Libattr\sched_attr_def.c"
  148. )
  149. echo "Parsing the Master file for server and ecl"
  150. "..\..\..\binaries\python\python.exe" "..\..\buildutils\attr_parser.py" -m "..\..\src\lib\Libattr\master_sched_attr_def.xml" -s "..\..\src\lib\Libattr\sched_attr_def.c" -e "..\..\src\lib\Libecl\ecl_sched_attr_def.c" -a sched
  151. if %ERRORLEVEL% NEQ 0 (
  152. echo "generation of file not a success"
  153. exit 1
  154. )