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