#
# Syntax:
#
# '#'   is a comment. All trailing characters after a '#' are ignored.
#
#
# 'REV' is used to match against the REV version number reported by a radio.
#
#   REV is followed by a regular expression which is matched against the radio revision.
#
#   1. Leading zeros on each part of the radio-reported version number are trimmed prior to the regex match
#      being performed ( 06.00.00.0009 becomes 6.0.0.9 ).
#   2. 16.99.99.9000 will not match against the regex [6]\..*\..*\.[1-9]$ due to the pattern \.[1-9]$ which is
#      looking for a single non-zero digit preceded by a period and followed by eol.
#   3. 16.99.99.0009 would match, however. You will need to add the ‘^’ metacharacter to prevent that
#      ( e.g. REV ^[6]\..*\..*\.[1-9]$ ).
#
#   Example:
#
#       REV [1-5]\..*\..*\..*
#       ...
#
#       REV 1\.2\.3\.4
#       ...
#
#   The first REV to match is selected so it is important to order the REV
#   statements from most specific to least specific.
#
#   Example:
#
#       REV 1\.2\.3\.4
#       ...
#
#       REV [1-5]\..*\..*\..*
#       ...
#
#
#   In the above examples, a radio REV of 1.2.3.4 would match the 1st REV.
#
#
# 'DLD' creates a new DLD using files from the primary DLD.
#
#   DLD commands must follow a REV statement. There can be more than one DLD command per
#   REV.
#
#   DLD can contain an optional comma separated list of files to include in the new DLD. All files to be included must
#   be on a single line. Files are included in the DLD in the order they are listed.
#
#   Example:
#
#       DLD RKERNEL_06_00_10_0033,KERNEL_06_00_10_0033
#
#   In the above example, a DLD will be created that includes RKERNEL_06_00_10_0033
#   and KERNEL_06_00_10_0033, in that order.
#
#   If no files are listed, all the files in the primary DLD ( excluding *.dnd ) get
#   included in the new DLD with their order preserved.
#
#   Example:
#
#       DLD
#
#   In the above example, any file in the primary DLD that does not end with '.dnd' will
#   be included in the new DLD.
#
#   A file can be renamed when added to the new DLD by separating the original and new
#   names with '->'.
#
#   Example:
#               #       Original filename->New filename
#      DLD RKERNEL_06_00_10_0034->KERNEL_06_00_10_34
#
#   In the above example, the new DLD will contain a single file named KERNEL_06_00_10_34
#   whose contents are identical to RKERNEL_06_00_10_0034.
#
#
#   Complete example:
#
#   REV ^[1-5]\..*\..*\..*$
#   DLD RKERNEL_06_00_10_0033->KERNEL_06_00_10_0033
#   DLD
#
#   REV .*
#   DLD
#
#   In the above example, if a radio REV has a major version of 1 through 5,
#   then create 2 DLD files. The first DLD will consist of KERNEL_06_00_10_0033, which
#   is actually a renamed RKERNEL_06_00_10_0033. The second DLD will consist of all files
#   in the primary DLD.
#
#   If the radio REV has a major version of 6 or higher ( matches .* ) then create
#   a single DLD consisting of all the files in the primary DLD.
#
#   DLD files will be downloaded and installed one at a time.
#
#
REV ^[1-5]\..*\..*\..*$
DLD RKERNEL_06_10_00_0001->KERNEL_06_10_00_0001
DLD

# some early 6.x builds also need the 2-step download
REV ^6\.0\..*\.[1-9]$
DLD RKERNEL_06_10_00_0001->KERNEL_06_10_00_0001
DLD

REV .*
DLD
