Subversion Repositories SvarDOS

Rev

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

Rev 1607 Rev 1608
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
  24 nov 2023: SVED included in the MS-DOS compat list instead of EDIT
13
  24 nov 2023: SVED included in the MS-DOS compat list instead of EDIT + support for "release xyz" versions
14
  25 aug 2023: validation of the hwreq section in LSM files
14
  25 aug 2023: validation of the hwreq section in LSM files
15
  24 aug 2023: load hwreq data from LSM and store them in the json index + skip the '.svn' dir
15
  24 aug 2023: load hwreq data from LSM and store them in the json index + skip the '.svn' dir
16
  30 jun 2023: adapted for new CORE packages location (../packages-core)
16
  30 jun 2023: adapted for new CORE packages location (../packages-core)
17
  28 feb 2022: svarcom allowed to have a COMMAND.COM file without subdirectory
17
  28 feb 2022: svarcom allowed to have a COMMAND.COM file without subdirectory
18
  24 feb 2022: added hardcoded hack to translate version 'x.xx' to '0.44' (NESticle)
18
  24 feb 2022: added hardcoded hack to translate version 'x.xx' to '0.44' (NESticle)
Line 82... Line 82...
82
  $subver = array(0,0,0,0);
82
  $subver = array(0,0,0,0);
83
 
83
 
84
  // switch string to lcase for easier processing and trim any leading or trailing white spaces
84
  // switch string to lcase for easier processing and trim any leading or trailing white spaces
85
  $verstr = strtolower(trim($verstr));
85
  $verstr = strtolower(trim($verstr));
86
 
86
 
-
 
87
  // Special hack for E. C. Masloch's lDebug. lDebug's versions are identifying as "releases" and wish to be recognized as such. If the version string starts with "release " I remove this word and continue.
-
 
88
  if (preg_match('/^release /', $verstr)) $verstr = substr($verstr, 8);
-
 
89
 
87
  // replace all '-' and '/' characters to '.' (uniformization of sub-version parts delimiters)
90
  // replace all '-' and '/' characters to '.' (uniformization of sub-version parts delimiters)
88
  $verstr = strtr($verstr, '-/', '..');
91
  $verstr = strtr($verstr, '-/', '..');
89
 
92
 
90
  // is there a subversion value? (for example "+4" in "1.05+4")
93
  // is there a subversion value? (for example "+4" in "1.05+4")
91
  $i = strrpos($verstr, '+', 1);
94
  $i = strrpos($verstr, '+', 1);