Subversion Repositories SvarDOS

Rev

Rev 1011 | Rev 1037 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1011 Rev 1022
Line 8... Line 8...
8
  files. buildidx will generate the index file and save it into the package
8
  files. buildidx will generate the index file and save it into the package
9
  repository.
9
  repository.
10
 
10
 
11
  requires php-zip
11
  requires php-zip
12
 
12
 
13
  02 mar 2022: (yet to create) freecom allowed to have a COMMAND.COM file without subdirectory
-
 
14
  28 feb 2022: svarcom allowed to have a COMMAND.COM file without subdirectory
13
  28 feb 2022: svarcom allowed to have a COMMAND.COM file without subdirectory
15
  24 feb 2022: added hardcoded hack to translate version 'x.xx' to '0.44' (NESticle)
14
  24 feb 2022: added hardcoded hack to translate version 'x.xx' to '0.44' (NESticle)
16
  23 feb 2022: basic validation of source archives (not empty + matches an existing svp file)
15
  23 feb 2022: basic validation of source archives (not empty + matches an existing svp file)
17
  21 feb 2022: buildidx collects categories looking at the dir layout of each package + improved version string parsing (replaced version_compare call by dos_version_compare)
16
  21 feb 2022: buildidx collects categories looking at the dir layout of each package + improved version string parsing (replaced version_compare call by dos_version_compare)
18
  17 feb 2022: checking for non-8+3 filenames in packages and duplicates + devload no longer part of CORE
17
  17 feb 2022: checking for non-8+3 filenames in packages and duplicates + devload no longer part of CORE
Line 35... Line 34...
35
  10 jul 2013: changed unzip calls to 7za (to handle cases when appinfo is compressed with lzma)
34
  10 jul 2013: changed unzip calls to 7za (to handle cases when appinfo is compressed with lzma)
36
  04 feb 2013: added CRC32 support
35
  04 feb 2013: added CRC32 support
37
  22 sep 2012: forked 1st version from FDUPDATE builder
36
  22 sep 2012: forked 1st version from FDUPDATE builder
38
*/
37
*/
39
 
38
 
40
$PVER = "20220302";
39
$PVER = "20220228";
41
 
40
 
42
 
41
 
43
// computes the BSD sum of a file and returns it
42
// computes the BSD sum of a file and returns it
44
function file2bsum($fname) {
43
function file2bsum($fname) {
45
  $result = 0;
44
  $result = 0;
Line 396... Line 395...
396
    }
395
    }
397
    // SVARCOM is allowed to have a root-based COMMAND.COM file
396
    // SVARCOM is allowed to have a root-based COMMAND.COM file
398
    if ($pkgnam === 'svarcom') {
397
    if ($pkgnam === 'svarcom') {
399
      if ($f === 'command.com') continue;
398
      if ($f === 'command.com') continue;
400
    }
399
    }
401
    // FREECOM is allowed to have a root-based COMMAND.COM file
-
 
402
    if ($pkgnam === 'freecom') {
-
 
403
      if ($f === 'command.com') continue;
-
 
404
    }
-
 
405
    // the help package is allowed to put files in... help
400
    // the help package is allowed to put files in... help
406
    if (($pkgnam == 'help') && (str_head_is($f, 'help/'))) continue;
401
    if (($pkgnam == 'help') && (str_head_is($f, 'help/'))) continue;
407
    // must be category-prefixed file, add it to the list of categories for this package
402
    // must be category-prefixed file, add it to the list of categories for this package
408
    $catlist[] = explode('/', $f)[0];
403
    $catlist[] = explode('/', $f)[0];
409
    // well-known "category" dirs are okay
404
    // well-known "category" dirs are okay