| 1 | @echo off
|
|---|
| 2 | rem This script was done for OS/2, I don't know if it will work on other OS
|
|---|
| 3 | if "%1"=="/?" goto Help
|
|---|
| 4 | if "%1"=="-?" goto Help
|
|---|
| 5 | if "%1"=="EN" goto Valid
|
|---|
| 6 | if "%1"=="DE" goto Valid
|
|---|
| 7 | if "%1"=="DT" goto Valid
|
|---|
| 8 | if "%1"=="FR" goto Valid
|
|---|
| 9 | if "%1"=="IT" goto Valid
|
|---|
| 10 | if "%1"=="RU" goto Valid
|
|---|
| 11 | if "%1"=="SW" goto Valid
|
|---|
| 12 | if "%1"=="ALL" goto BuildAll
|
|---|
| 13 | echo Invalid language ID
|
|---|
| 14 | goto ExitMe
|
|---|
| 15 |
|
|---|
| 16 | :Help
|
|---|
| 17 | echo pack.cmd [LanguageID] [Version]
|
|---|
| 18 | echo e.g. pack EN v106
|
|---|
| 19 | goto ExitMe
|
|---|
| 20 |
|
|---|
| 21 | :BuildAll
|
|---|
| 22 | if "%2"=="" goto NoVersion
|
|---|
| 23 | call pack EN %2
|
|---|
| 24 | call pack DE %2
|
|---|
| 25 | call pack DT %2
|
|---|
| 26 | call pack FR %2
|
|---|
| 27 | call pack IT %2
|
|---|
| 28 | call pack RU %2
|
|---|
| 29 | call pack SW %2
|
|---|
| 30 | goto ExitMe
|
|---|
| 31 |
|
|---|
| 32 | :NoVersion
|
|---|
| 33 | echo No version specified as 2nd parameter
|
|---|
| 34 | goto ExitMe
|
|---|
| 35 |
|
|---|
| 36 | :Valid
|
|---|
| 37 | if "%2"=="" goto NoVersion
|
|---|
| 38 | if not exist temp md temp
|
|---|
| 39 | if not exist temp\CD-ROM md temp\CD-ROM
|
|---|
| 40 | if not exist temp\DOCS md temp\DOCS
|
|---|
| 41 | if not exist temp\DOS md temp\DOS
|
|---|
| 42 | if not exist temp\OS2 md temp\OS2
|
|---|
| 43 | del temp\*.* /N
|
|---|
| 44 | del temp\CD-ROM\*.* /N
|
|---|
| 45 | del temp\DOCS\*.* /N
|
|---|
| 46 | del temp\DOS\*.* /N
|
|---|
| 47 | del temp\OS2\*.* /N
|
|---|
| 48 | copy !README!.1ST temp
|
|---|
| 49 | rem Language-specific bootcode
|
|---|
| 50 | copy bootcode\%1.bin temp\airboot.bin
|
|---|
| 51 | rem CD-ROM-specific files (ISO)
|
|---|
| 52 | copy CD-ROM\*.* temp\CD-ROM\*.*
|
|---|
| 53 | rem DOS-specific installer/tools
|
|---|
| 54 | copy DOS\airboot.com temp
|
|---|
| 55 | copy DOS\makedisk.com temp
|
|---|
| 56 | copy DOS\inithdd.com temp\DOS
|
|---|
| 57 | copy DOS\setaboot.com temp\DOS
|
|---|
| 58 | rem OS/2-specific installer/tools
|
|---|
| 59 | copy OS2\airboot2.exe temp
|
|---|
| 60 | copy OS2\setaboot.exe temp\OS2
|
|---|
| 61 | rem WINNT-specific installer
|
|---|
| 62 | copy WINNT\airbootw.exe temp
|
|---|
| 63 | rem Documentation
|
|---|
| 64 | copy ..\DOCS\GENERIC\*.* temp\DOCS
|
|---|
| 65 | copy ..\DOCS\%1\*.* temp\DOCS
|
|---|
| 66 | cd temp
|
|---|
| 67 | zip -R -S -9 AiRBOOT.zip *
|
|---|
| 68 | cd ..
|
|---|
| 69 | copy temp\AiRBOOT.zip ZIP\AiR-BOOT%2_%1.zip
|
|---|
| 70 | :ExitMe
|
|---|