Changeset 196


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

Added targets to build source and binary (zip) packages [v1.1.1-testing]

Annoying things:
o 'cd' cannot change to a drive ala 4dos 'cdd'
o 'rd' cannot remove a whole tree ala 'rm -rf'
o 'zip' has no option to set a root-dir for the archive
o 'zip' has no '-C' option ala 'make -C'
o 'wmake' cannot separate a drive-letter from a path

Just a few reasons why WMake will be replaced by GNU Make, where
string-macros can be used to solve the above issues.

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r195 r196  
    124124        @echo :: Look in the RELEASE directory for the distribution files       ::
    125125        @echo :: for each platform and the bootloader for each language.        ::
    126 #       @echo :: The packages directory contains packages for each supported    ::
    127 #       @echo :: platform.                                                      ::
    128126        @echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    129127        @echo.
     
    187185
    188186# -----------------------------------------------------------------------------
    189 # CREATE PACKAGE
    190 # -----------------------------------------------------------------------------
    191 package: .SYMBOLIC
     187# CREATE SOURCE PACKAGE (ZIP)
     188# -----------------------------------------------------------------------------
     189package.src: .SYMBOLIC clean
    192190!ifdef  __LINUX__
    193191        @echo
     
    195193        @echo
    196194!else
    197         @echo.
    198         @echo *** Packaging is not implemented yet ***
    199         @echo.
    200 !endif
     195        set RELDIR=release
     196        set CRC_IGNORE=n
     197        set ABV=AirBoot-v1.1.2
     198        set PACKDIR=$(%ABV)-src-RELEASE
     199        set WTD=04-13-2017
     200        set WTT=01:01:02
     201        set RDATE=201704130101.02
     202
     203        @echo.
     204        @echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
     205        @echo @@ Creating Source Package
     206        @echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
     207        @if exist $(%ABV)*.zip del $(%ABV)*.zip
     208        @if exist $(%RDATE)-tmp.zip del $(%RDATE)-tmp.zip
     209        @zip -q -r -x.git $(%RDATE)-tmp.zip .
     210        @md $(%PACKDIR)
     211        @move $(%RDATE)-tmp.zip $(%PACKDIR) 1>nul
     212        @cd $(%PACKDIR)
     213        @unzip -q $(%RDATE)-tmp.zip
     214        @del $(%RDATE)-tmp.zip
     215        @wtouch -c -r -s -d $(%WTD) -t $(%WTT) .
     216        @cd ..
     217        @if exist $(%PACKDIR).zip del $(%PACKDIR).zip
     218        @zip -r -m $(%PACKDIR).zip $(%PACKDIR)
     219        @-touch -c -t $(%RDATE) $(%PACKDIR).zip
     220
     221        @echo.
     222!endif
     223
     224
     225
     226# -----------------------------------------------------------------------------
     227# CREATE BINARY PACKAGE (ZIP)
     228# -----------------------------------------------------------------------------
     229package.bin: .SYMBOLIC
     230!ifdef  __LINUX__
     231        @echo
     232        @echo "*** Packaging is not implemented yet ***"
     233        @echo
     234!else
     235        set RELEASE=y
     236        set RELDIR=release
     237        set PACKDIR=AirBoot-v1.1.2-bin-RELEASE
     238        set RDATE=201704130101.02
     239
     240        @%MAKE build
     241
     242        @echo.
     243        @echo *** Copying DOS Release Files ***
     244        @xcopy /s $(%RELDIR)\dos $(%PACKDIR)\install\dos\
     245        @if exist $(%PACKDIR)\install\dos\.gitignore del $(%PACKDIR)\install\dos\.gitignore
     246        @-touch -c -t $(%RDATE) $(%PACKDIR)\install\dos\*
     247
     248#~      @echo.
     249#~      @echo *** Copying Linux Release Files ***
     250#~      @xcopy /s $(%RELDIR)\linux $(%PACKDIR)\install\linux\
     251#~      @if exist $(%PACKDIR)\install\linux\.gitignore del $(%PACKDIR)\install\linux\.gitignore
     252#~      @-touch -c -t $(%RDATE) $(%PACKDIR)\install\linux\*
     253
     254        @echo.
     255        @echo *** Copying OS/2 Release Files ***
     256        @xcopy /s $(%RELDIR)\os2 $(%PACKDIR)\install\os2\
     257        @if exist $(%PACKDIR)\install\os2\.gitignore del $(%PACKDIR)\install\os2\.gitignore
     258        @-touch -c -t $(%RDATE) $(%PACKDIR)\install\os2\*
     259
     260        @echo.
     261        @echo *** Copying WindowsNT Release Files ***
     262        @xcopy /s $(%RELDIR)\winnt $(%PACKDIR)\install\winnt\
     263        @if exist $(%PACKDIR)\install\winnt\.gitignore del $(%PACKDIR)\install\winnt\.gitignore
     264        @-touch -c -t $(%RDATE) $(%PACKDIR)\install\winnt\*
     265
     266        @-touch -c -t $(%RDATE) $(%PACKDIR)\install\*
     267
     268        @echo.
     269        @echo *** Copying Other Language Loader Images ***
     270        @xcopy /s $(%RELDIR)\bootcode\*.bin $(%PACKDIR)\loaders\
     271        @if exist $(%PACKDIR)\loaders\.gitignore del $(%PACKDIR)\loaders\.gitignore
     272        @-touch -c -t $(%RDATE) $(%PACKDIR)\loaders\*
     273
     274        @-touch -c -t $(%RDATE) $(%PACKDIR)\*
     275        @-touch -c -t $(%RDATE) $(%PACKDIR)
     276
     277        @echo.
     278        @echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
     279        @echo @@ Creating Binary Package
     280        @echo @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
     281        @if exist $(%PACKDIR).zip del $(%PACKDIR).zip
     282        @zip -r -m $(%PACKDIR).zip $(%PACKDIR)
     283        @-touch -c -t $(%RDATE) $(%PACKDIR).zip
     284
     285        @echo.
     286!endif
     287
     288
     289
     290# -----------------------------------------------------------------------------
     291# CREATE SOURCE AND BINARY DISTRIBUTION PACKAGES (ZIP)
     292# -----------------------------------------------------------------------------
     293# This creates the source and binary packages suitable for distribution.
     294# Note that 'package.src' does a 'clean' and 'package.bin' does a 'build',
     295# so this may take a while. When finished, both packages will be in this
     296# directory and the built files will not have been cleaned.
     297# -----------------------------------------------------------------------------
     298package: .SYMBOLIC package.src package.bin
     299        @echo.
     300        @echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
     301        @echo :: Package Creation Finished                                      ::
     302        @echo :: -------------------------------------------------------------- ::
     303        @echo :: Before distributing, check the BLDLEVEL and MD5SUM of the      ::
     304        @echo :: files in the binary package to verify they are correct.        ::
     305        @echo :: Also unzip the source package and check that building works.   ::
     306        @echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
     307        @echo.
     308        @dir /b *.zip
     309        @echo.
    201310
    202311
  • trunk/fc.mnu

    r195 r196  
    1414        wmake -h package
    1515
     16#~ P:   Package
     17#~ {
     18#~ A:   All
     19#~      wmake -h package
     20#~ -:   --------------
     21#~ B:   Binary Package
     22#~      wmake -h package.bin
     23#~ S:   Source Package
     24#~      wmake -h package.src
     25#~ }
     26
    1627C:      Clean
    1728        wmake -h clean
Note: See TracChangeset for help on using the changeset viewer.