Author Topic: one source for CVS dates  (Read 718 times)

picobyte

  • Traveller
  • *
  • Posts: 12
    • View Profile
one source for CVS dates
« on: February 23, 2006, 12:49:14 am »
My wish: one public text file on the server, used to display CVS dates. If I look at this page http://laanx.fragnetics.com/index.php?page=linux it mentions the following dates for CVS:
Quote
Cal3d Date:        2005-05-15 00:00:00
CS Date:      2006-01-04 00:00:00
CEL Date:        2006-01-04 00:00:00
PS Date:      2006-01-14 00:00:00

and lower the probably inacurate dates:
Quote
Cal3d               2005-10-06 00:00:00
Crystal Space   2005-10-06 00:00:00
CEL                2005-10-06 00:00:00
PlaneShift     2005-11-30 00:00:00

This causes confusion because for instance for cal3d, the lower date is newer, All other dates are newer in the upper table. If there is one source, a cvsbuild script like easy_planeshift could use that as a source as well. Of course it would be nice if the names left to the dates were consistent as well. An advantage for a moderator of the site is that only on one location changes have to be made.
to fetch it for the easy_updatescript (in linux) we could do a:
Code: [Select]
wget [URL]http://laanx.fragnetics.com/path/to/cvsdates[/URL] -O buildlist.cfg
If you want to display it on a site you could use something like:
Code: [Select]
$cvsfile = \"http://laanx.fragnetics.com/path/to/cvsdates\";
$file = fopen ( $cvsfile, \"r\" );
if (!$file) {
   echo \"

Unable to read $cvsfile.

\";
   exit;
}
while (!feof ($file)) {
   $line = fgets ($file, 256);
   echo \"

$line

\"
}
fclose($file);
?>
« Last Edit: February 23, 2006, 01:28:39 am by picobyte »


picobyte

  • Traveller
  • *
  • Posts: 12
    • View Profile
(No subject)
« Reply #1 on: February 24, 2006, 01:04:20 pm »
Actually looking at the code, easy_planeshift script, I see that it is allready implemented, the script does not retrieve the latest CVS dates, however.


apis

  • Hydlaa Resident
  • *
  • Posts: 72
    • View Profile
    • The Way of the Hammer
(No subject)
« Reply #2 on: February 24, 2006, 01:19:34 pm »
Quote
Originally posted by picobyte
Actually looking at the code, easy_planeshift script, I see that it is allready implemented, the script does not retrieve the latest CVS dates, however.

that is why the GP posted:
\"wget http://laanx.fragnetics.com/path/to/cvsdates -O buildlist.cfg\"
and it would be nice to have the dates somewhere other than in the topic of #planeshift-build.
Apis - The Way of the Hammer