Changeset 197 for trunk


Ignore:
Timestamp:
Nov 7, 2017, 7:13:06 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Added targets to generate AiR-BOOT install scripts [v1.1.1-testing]

When a user unzips the binary release archive, some kind of 'install'
is expected. These targets generate the install scripts when the binary
package is created -- one for each supported language.
(Currently OS/2 scripts only)

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r196 r197  
    205205        @echo @@ Creating Source Package
    206206        @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
    209210        @zip -q -r -x.git $(%RDATE)-tmp.zip .
    210211        @md $(%PACKDIR)
     
    272273        @-touch -c -t $(%RDATE) $(%PACKDIR)\loaders\*
    273274
     275        @%MAKE os2.install.cmd
     276
    274277        @-touch -c -t $(%RDATE) $(%PACKDIR)\*
    275278        @-touch -c -t $(%RDATE) $(%PACKDIR)
     
    285288        @echo.
    286289!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# -----------------------------------------------------------------------------
     301os2.install.cmd: .symbolic
     302        @set ABLANG=en de nl fr it sw ru
     303        @type >$(%PACKDIR)\$@ <<
     304@echo off
     305
     306rem :: ========================================================================
     307rem :: This script will install or upgrade AiR-BOOT.
     308rem :: However, an upgrade will only work if the installed version is older.
     309rem :: To force the installer to write the code, use the /forcecode flag.
     310rem :: ========================================================================
     311
     312rem :: Do not interfere with system environment
     313setlocal
     314
     315rem :: Default to EN if language not specified
     316if "%ablang%"=="" set ablang=en
     317
     318rem :: Check if we are not on some WindowsNT system
     319if "%os2_shell%"=="" goto not_os2
     320
     321rem :: Create temporary directory and copy installer and lang-specific loader
     322if not exist os2.%ablang% md os2.%ablang%
     323copy install\os2\airboot2.exe os2.%ablang%
     324copy loaders\airbt-%ablang%.bin os2.%ablang%\airboot.bin
     325
     326rem :: Now run the installer from there
     327cd os2.%ablang%
     328airboot2.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
     329cd ..
     330
     331rem :: Remove the temporary stuff
     332if exist os2.%ablang% del /n os2.%ablang%\*.*
     333if exist os2.%ablang% rd os2.%ablang%
     334goto end
     335
     336rem :: Probably WindowsNT, user must do language stuff themselves
     337:not_os2
     338echo.
     339echo ERROR: This does not look like an OS/2 system !
     340echo        For WindowsNT [EN], go to install\winnt and run 'airbootw.exe'.
     341echo        For other languages see this script on how to do it.
     342echo        Aborting...
     343goto end
     344
     345rem :: 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# -----------------------------------------------------------------------------
     358os2.install.lang.cmd: .symbolic
     359        @type >$(%PACKDIR)\os2.install.$(ABLANG).cmd <<
     360@echo off
     361
     362rem :: ========================================================================
     363rem :: This script will install or upgrade AiR-BOOT.
     364rem :: However, an upgrade will only work if the installed version is older.
     365rem :: To force the installer to write the code, use the /forcecode flag.
     366rem :: ========================================================================
     367
     368rem :: Do not interfere with system environment
     369setlocal
     370
     371rem :: Setup language
     372set ablang=$(ABLANG)
     373
     374rem :: Run the generic OS/2 script to install this specific language
     375call os2.install.cmd %1 %2 %3 %4 %5 %6 %7 %8 %9
     376<<nokeep
    287377
    288378
Note: See TracChangeset for help on using the changeset viewer.