Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git] / nucleus / tools / clam_tools / vsts_version_fixer.cpp
index 9226adfaf9c3d39af6542e903824b6e1aa771034..3beb8779ee2310e125a71ef2eff21a010aa6577e 100644 (file)
@@ -219,8 +219,13 @@ bool stamping_spider(const directory &current)
     if (current_file.ends("version.ini")
         && !current_file.iequals("core_version.ini") ) {
 //LOG(astring("found ver file: ") + current.path() + "/" + current_file);
+//
+      astring versions_directory = environment::get("FEISTY_MEOW_GENERATED_STORE");
+     // we keep our version files one level below the top of the generated store.
+      versions_directory += "/versions";
+
       version_ini::one_stop_version_stamp(current.path() + "/" + current_file,
-          global_build_ini, true);
+          versions_directory, global_build_ini, true);
     }
   }
   return true;
@@ -254,18 +259,18 @@ void vsts_version_fixer::remove_confusing_files()
   source_dir_whacks += "Release";
   source_dir_whacks += "bin";
   source_dir_whacks += "temp_build";
-  directory repo_source(environment::get("FEISTY_MEOW_DIR") + "/source");
+  directory repo_source(environment::get("FEISTY_MEOW_APEX") + "/source");
   whack_in_subdirs(repo_source, source_file_whacks, source_dir_whacks);
-  directory libra_src(environment::get("FEISTY_MEOW_DIR") + "/libraries");
+  directory libra_src(environment::get("FEISTY_MEOW_APEX") + "/libraries");
   whack_in_subdirs(libra_src, source_file_whacks, source_dir_whacks);
-  directory produ_src(environment::get("FEISTY_MEOW_DIR") + "/products");
+  directory produ_src(environment::get("FEISTY_MEOW_APEX") + "/products");
   whack_in_subdirs(produ_src, source_file_whacks, source_dir_whacks);
 
 /* this never helped.
   // clean out a variety of bad files in the objects hierarchy.
   // currently this is just the generated RES files which we have seen cause
   // vsts to think apps and dlls are up to date when they are actually not.
-  directory repo_objects(environment::get("FEISTY_MEOW_DIR"));
+  directory repo_objects(environment::get("FEISTY_MEOW_APEX"));
   string_array objects_file_whacks;
   objects_file_whacks += ".res";
   string_array objects_dir_whacks;  // none right now.
@@ -281,7 +286,7 @@ int vsts_version_fixer::execute()
 
   remove_confusing_files();
 
-  astring repo_dir = environment::get("FEISTY_MEOW_DIR");
+  astring repo_dir = environment::get("FEISTY_MEOW_APEX");
 
   // figure out which build parameter file to use.
   global_build_ini = "";