From: Paul J R Date: Thu, 17 Jan 2013 18:34:57 +0000 (+1100) Subject: moved versions list to a sub directory X-Git-Url: http://git.pjr.cc/?a=commitdiff_plain;h=867e989e8b02fedc9a9b368b8a89255aecac8159;p=random_node_code.git moved versions list to a sub directory --- diff --git a/nodejs_dist_list/parse_dist.php b/nodejs_dist_list/parse_dist.php index ab9fd48..606d560 100644 --- a/nodejs_dist_list/parse_dist.php +++ b/nodejs_dist_list/parse_dist.php @@ -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"); diff --git a/nodejs_dist_list/current_version b/nodejs_dist_list/versions/current_version similarity index 100% rename from nodejs_dist_list/current_version rename to nodejs_dist_list/versions/current_version diff --git a/nodejs_dist_list/versions_file.20130117 b/nodejs_dist_list/versions/versions_file.20130117 similarity index 100% rename from nodejs_dist_list/versions_file.20130117 rename to nodejs_dist_list/versions/versions_file.20130117 diff --git a/nodejs_dist_list/versions_file.20130118 b/nodejs_dist_list/versions/versions_file.20130118 similarity index 100% rename from nodejs_dist_list/versions_file.20130118 rename to nodejs_dist_list/versions/versions_file.20130118