moved versions list to a sub directory
authorPaul J R <me@pjr.cc>
Thu, 17 Jan 2013 18:34:57 +0000 (05:34 +1100)
committerPaul J R <me@pjr.cc>
Thu, 17 Jan 2013 18:34:57 +0000 (05:34 +1100)
nodejs_dist_list/parse_dist.php
nodejs_dist_list/versions/current_version [moved from nodejs_dist_list/current_version with 100% similarity]
nodejs_dist_list/versions/versions_file.20130117 [moved from nodejs_dist_list/versions_file.20130117 with 100% similarity]
nodejs_dist_list/versions/versions_file.20130117.gz [moved from nodejs_dist_list/versions_file.20130117.gz with 100% similarity]
nodejs_dist_list/versions/versions_file.20130118 [moved from nodejs_dist_list/versions_file.20130118 with 100% similarity]
nodejs_dist_list/versions/versions_file.20130118.gz [moved from nodejs_dist_list/versions_file.20130118.gz with 100% similarity]

index ab9fd48..606d560 100644 (file)
@@ -92,7 +92,7 @@ foreach($initvers_t as $val) {
 
 echo "dumping to versions file\n";
 $versdate = date("Ymd");
-$versfilename = "./versions_file.$versdate";
+$versfilename = "./versions/versions_file.$versdate";
 $versfile = fopen("$versfilename", "w");
 if($versfile !== false) {
        fwrite($versfile, "baseurl:$baseurl\n");
@@ -102,10 +102,10 @@ if($versfile !== false) {
        fclose($versfile);
 
        // compress teh file
-       system("gzip -c $versfilename > $versfilename.gz");
+       system("gzip -c versions/$versfilename > versions/$versfilename.gz");
        
        // create a current versions file
-       $cv = fopen("current_version", "w");
+       $cv = fopen("versions/current_version", "w");
        if($cv !== false) {
                fwrite($cv, "version:$versdate\n");
                fwrite($cv, "stable:".$maxstable[0].".".$maxstable[1].".".$maxstable[2]."\n");