Subversion Repositories SvarDOS

Rev

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

Rev 563 Rev 650
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
  12 feb 2022: skip source packages from being processed (*.src.zip)
13
  20 jan 2022: rewritten the code from ANSI C to PHP for easier maintenance
14
  20 jan 2022: rewritten the code from ANSI C to PHP for easier maintenance
14
  13 feb 2021: 'title' LSM field is no longer looked after
15
  13 feb 2021: 'title' LSM field is no longer looked after
15
  11 feb 2021: lsm headers are no longer checked, so it is compatible with the simpler lsm format used by SvarDOS
16
  11 feb 2021: lsm headers are no longer checked, so it is compatible with the simpler lsm format used by SvarDOS
16
  13 jan 2021: removed the identification line, changed CRC32 to bsum, not creating the listing.txt file and stopped compressing index
17
  13 jan 2021: removed the identification line, changed CRC32 to bsum, not creating the listing.txt file and stopped compressing index
17
  23 apr 2017: uncompressed index is no longer created, added CRC32 of zib (bin only) files, if present
18
  23 apr 2017: uncompressed index is no longer created, added CRC32 of zib (bin only) files, if present
Line 109... Line 110...
109
  if (!preg_match('/.zip$/i', $zipfile)) continue; // skip non-zip files
110
  if (!preg_match('/.zip$/i', $zipfile)) continue; // skip non-zip files
110
  if (strchr($zipfile, '-')) {
111
  if (strchr($zipfile, '-')) {
111
    echo "skipping: {$zipfile}\n";
112
    echo "skipping: {$zipfile}\n";
112
    continue; // skip alt vers (like dosmid-0.9.2.zip)
113
    continue; // skip alt vers (like dosmid-0.9.2.zip)
113
  }
114
  }
-
 
115
  if (strstr($zipfile, '.src.zip')) {
-
 
116
    echo "skipping source: {$zipfile}\n";
-
 
117
    continue;
-
 
118
  }
-
 
119
 
114
 
120
 
115
  $path_parts = pathinfo($zipfile);
121
  $path_parts = pathinfo($zipfile);
116
  $pkg = strtolower($path_parts['filename']);
122
  $pkg = strtolower($path_parts['filename']);
117
 
123
 
118
  $zipfile_fullpath = realpath($repodir . '/' . $zipfile);
124
  $zipfile_fullpath = realpath($repodir . '/' . $zipfile);