Changeset 788
- Timestamp:
- Aug 15, 2013, 10:42:52 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/build.cmd
r757 r788 20 20 /* version 0.3.11 from 15.11.2012 Herwig (make libc switching really optional) */ 21 21 /* version 0.3.12 from 30.11.2012 Silvan (maintained by) */ 22 /* version 0.3.13 from 15.08.2013 Herwig (create build_anomalies.log, codepages 23 to ZIP, libc065 switching) */ 22 24 23 25 /* load the sysfuncs if not already loaded */ … … 29 31 30 32 /* init the version string (don't forget to change) */ 31 version = "0.3.12" 32 version_date = "30.11.2012" 33 34 /* number of make jobs to execute at the same time */ 35 jobs = "2" 33 version = "0.3.13" 34 version_date = "15.08.2013" 36 35 37 36 '@echo off' … … 55 54 say " ALL - do just everything" 56 55 say "Deprecated options:" 57 say " 064 - link against libc064.dll (default)" 56 say " 065 - link against libc065.dll (default)" 57 say " 064 - link against libc064.dll" 58 58 say " 064x - link against libc064x.dll" 59 59 say " 063 - link against libc063.dll" … … 67 67 end 68 68 69 options = 'build.options' 69 logFile = 'build.log' 70 options = 'build.options' 70 71 cacheFile = 'build.cache' 71 72 72 73 /* defaults */ 73 74 make = "" 75 jobs = "2" /* number of make jobs to execute at the same time */ 74 76 brand = "No" 75 77 conf = "" … … 90 92 build_parms = "" 91 93 92 /* delete the following 7lines to remove libc switching capability */94 /* delete the following 8 lines to remove libc switching capability */ 93 95 select 96 when pos("065", cmdline) > 0 then libc = "065" 94 97 when pos("064", cmdline) > 0 then libc = "064" 95 when pos("064X", 96 when pos("063", cmdline) > 0 then 98 when pos("064X",cmdline) > 0 then libc = "064X" 99 when pos("063", cmdline) > 0 then libc = "063" 97 100 otherwise libc = "" 98 101 end … … 156 159 end 157 160 else do 158 sEnvVar = EnvGet('UNIXROOT');159 if sEnvVar <> '' then do160 161 sPythonVersion = PythonVersion(sEnvVar|| '/lib');162 if sPythonVersion <> '-1' then do163 call lineout cacheFile, "ac_cv_path_PYTHON_CONFIG='" || sEnvVar || "/lib/" || sPythonVersion || "'";164 call lineout cacheFile, "ac_cv_path_PYTHON='" || sEnvVar || "/include'";165 end166 end161 sEnvVar = EnvGet('UNIXROOT'); 162 if sEnvVar <> '' then do 163 sEnvVar = sEnvVar || '/usr' 164 sPythonVersion = PythonVersion(sEnvVar|| '/lib'); 165 if sPythonVersion <> '-1' then do 166 call lineout cacheFile, "ac_cv_path_PYTHON_CONFIG='" || sEnvVar || "/lib/" || sPythonVersion || "'"; 167 call lineout cacheFile, "ac_cv_path_PYTHON='" || sEnvVar || "/include'"; 168 end 169 end 167 170 end 168 171 ok = stream(cacheFile, 'c', 'close'); … … 178 181 179 182 if make <> "" then do 180 address cmd 'make -j 'jobs' 2>&1 | tee build.log'183 address cmd 'make -j 'jobs' 2>&1 | tee 'logFile 181 184 end 182 185 … … 189 192 'move ..\*.exe >NUL' 190 193 'move ..\*.dll >NUL' 194 'md .\codepage' 195 'copy ..\..\..\codepages\*.dat .\codepage\*' 191 196 'cd ..' 192 'zip -rpo9 samba-'translate(verstring,'-',' ')'.zip .\samba\*.exe .\samba\*.dll '197 'zip -rpo9 samba-'translate(verstring,'-',' ')'.zip .\samba\*.exe .\samba\*.dll .\samba\codepage\*.dat' 193 198 'cd .\samba' 194 199 'move * .. >NUL' 200 'del .\codepage\*.dat' 201 'rd .\codepage' 195 202 'cd ..' 196 203 'rd .\samba' 204 'cd ..' 197 205 say 'Created ZIP package' 198 206 end 207 208 /* Recreate build_anomalies.log */ 209 ok = SysFileDelete("build_anomalies.log") 210 do until lines(logFile) = 0 211 buildlogline = linein(logFile) 212 select 213 when left(buildlogline,11) = "Generating " then iterate 214 when left(buildlogline,10) = "Compiling " then iterate 215 when left(buildlogline,9) = "Building " then iterate 216 when left(buildlogline,8) = "Linking " then iterate 217 when left(buildlogline,6) = "Using " then iterate 218 when left(buildlogline,6) = " " then iterate 219 otherwise call lineout "build_anomalies.log", buildlogline 220 end 221 end 222 199 223 /* Default exit point */ 200 224 reqtime = format(time('E'),,0) … … 202 226 reqsec = reqtime//60 203 227 say "All done, took "format(reqmin,,0)' min 'format(reqsec,,0)" sec." 228 call lineout logFile, "All done, took "format(reqmin,,0)' min 'format(reqsec,,0)" sec." 204 229 exit 0 205 230 … … 234 259 if left(eCSVer.I,14) = "MAINTAINED_BY=" then do 235 260 parse var eCSver.I . '='maintainedBy 236 maintainedBy = ' "Maintained by:' || strip(maintainedBy,,'"') || '"'261 maintainedBy = 'Maintained by: "' || strip(maintainedBy,,'"') || '"' 237 262 end 238 263 end … … 272 297 ok = SysFileDelete(NewVersion) 273 298 verstring = suffix'-'Major'.'minor'.'release'.'revision'-'vendor'-'date('S') 274 say "Samba branded as: "verstring299 say 'Samba branded as: "'verstring'"' 275 300 say maintainedBy 276 301 say
Note:
See TracChangeset
for help on using the changeset viewer.