message: Move devtools to /collab/usr/gapps, Skip chmod/chgrp'ing if not in shared space
diff: @@ -521,6 +521,18 @@ def set_axom_group_and_perms(directory):
  Sets the proper group and access permissions of given input
  directory.
  """
  +
  + skip = True
  + shared_dirs = [get_shared_base_dir(), get_shared_collab_dir(), get_archive_base_dir()]
  + for shared_dir in shared_dirs:
  + if directory.startswith(shared_dir):
  + skip = False
  + break
  +
  + if skip:
  + print "[Skipping update of group and access permissions. Provided directory was not a known shared location: {0}]".format(directory)
  + return 0
  + else:
  print "[changing group and access perms of: %s]" % directory
  # change group to axomdev
  print "[changing group to axomdev]"
  @@ -725,6 +737,10 @@ def get_shared_base_dir():
  return "/usr/WS1/axom"
  +def get_shared_collab_dir():
  + return "/collab/usr/gapps/axom"
  +
  +
  def get_shared_mirror_dir():
  return pjoin(get_shared_base_dir(), "mirror")
  @@ -734,7 +750,7 @@ def get_shared_libs_dir():
  def get_shared_devtool_dir():
  - return pjoin(get_shared_base_dir(), "devtools")
  + return pjoin(get_shared_collab_dir(), "devtools")
  def get_specs_for_current_machine():
  @@ -779,6 +795,7 @@ def on_rz():
  return True
  return False
  +
  def get_compiler_from_spec(spec):
  compiler = spec
  for c in ['~', '+']:
  @@ -792,4 +809,3 @@ def convertSecondsToReadableTime(seconds):
  m, s = divmod(seconds, 60)
  h, m = divmod(m, 60)
  return "%d:%02d:%02d" % (h, m, s)
  -
  