- Timestamp:
- Nov 7, 2017, 7:13:06 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile
r196 r197 205 205 @echo @@ Creating Source Package 206 206 @echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 207 @if exist $(%ABV)*.zip del $(%ABV)*.zip 208 @if exist $(%RDATE)-tmp.zip del $(%RDATE)-tmp.zip 207 @echo Preparing... 208 @if exist $(%ABV)*.zip del $(%ABV)*.zip 1>nul 209 @if exist $(%RDATE)-tmp.zip del $(%RDATE)-tmp.zip 1>nul 209 210 @zip -q -r -x.git $(%RDATE)-tmp.zip . 210 211 @md $(%PACKDIR) … … 272 273 @-touch -c -t $(%RDATE) $(%PACKDIR)\loaders\* 273 274 275 @%MAKE os2.install.cmd 276 274 277 @-touch -c -t $(%RDATE) $(%PACKDIR)\* 275 278 @-touch -c -t $(%RDATE) $(%PACKDIR) … … 285 288 @echo. 286 289 !endif 290 291 292 293 # ----------------------------------------------------------------------------- 294 # GENERATE AiR-BOOT GENERIC INSTALL SCRIPT FOR OS/2 295 # ----------------------------------------------------------------------------- 296 # When unzipping a package, some 'install' is expected in the root directory. 297 # And since installing for another language than EN involves some copying and 298 # renaming, we will script that too. Currently this convenience is OS/2 only. 299 # This target generates the generic install script. 300 # ----------------------------------------------------------------------------- 301 os2.install.cmd: .symbolic 302 @set ABLANG=en de nl fr it sw ru 303 @type >$(%PACKDIR)\$@ << 304 @echo off 305 306 rem :: ======================================================================== 307 rem :: This script will install or upgrade AiR-BOOT. 308 rem :: However, an upgrade will only work if the installed version is older. 309 rem :: To force the installer to write the code, use the /forcecode flag. 310 rem :: ======================================================================== 311 312 rem :: Do not interfere with system environment 313 setlocal 314 315 rem :: Default to EN if language not specified 316 if "%ablang%"=="" set ablang=en 317 318 rem :: Check if we are not on some WindowsNT system 319 if "%os2_shell%"=="" goto not_os2 320 321 rem :: Create temporary directory and copy installer and lang-specific loader 322 if not exist os2.%ablang% md os2.%ablang% 323 copy install\os2\airboot2.exe os2.%ablang% 324 copy loaders\airbt-%ablang%.bin os2.%ablang%\airboot.bin 325 326 rem :: Now run the installer from there 327 cd os2.%ablang% 328 airboot2.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 329 cd .. 330 331 rem :: Remove the temporary stuff 332 if exist os2.%ablang% del /n os2.%ablang%\*.* 333 if exist os2.%ablang% rd os2.%ablang% 334 goto end 335 336 rem :: Probably WindowsNT, user must do language stuff themselves 337 :not_os2 338 echo. 339 echo ERROR: This does not look like an OS/2 system ! 340 echo For WindowsNT [EN], go to install\winnt and run 'airbootw.exe'. 341 echo For other languages see this script on how to do it. 342 echo Aborting... 343 goto end 344 345 rem :: Done 346 :end 347 <<nokeep 348 @for %%i in ($(%ABLANG)) do @$(MAKE) -h os2.install.lang.cmd ABLANG=%%i 349 350 351 352 # ----------------------------------------------------------------------------- 353 # GENERATE AiR-BOOT LANGUAGE SPECIFIC INSTALL SCRIPT FOR OS/2 354 # ----------------------------------------------------------------------------- 355 # When unzipping a package, some 'install' is expected in the root directory. 356 # This target generates a language specific install script. 357 # ----------------------------------------------------------------------------- 358 os2.install.lang.cmd: .symbolic 359 @type >$(%PACKDIR)\os2.install.$(ABLANG).cmd << 360 @echo off 361 362 rem :: ======================================================================== 363 rem :: This script will install or upgrade AiR-BOOT. 364 rem :: However, an upgrade will only work if the installed version is older. 365 rem :: To force the installer to write the code, use the /forcecode flag. 366 rem :: ======================================================================== 367 368 rem :: Do not interfere with system environment 369 setlocal 370 371 rem :: Setup language 372 set ablang=$(ABLANG) 373 374 rem :: Run the generic OS/2 script to install this specific language 375 call os2.install.cmd %1 %2 %3 %4 %5 %6 %7 %8 %9 376 <<nokeep 287 377 288 378
Note:
See TracChangeset
for help on using the changeset viewer.