+ #directory share/doc/salome (KERNEL doc) : create it and link content
+ if os.path.exists(module_sharedoc_dir):
+ mkdir(sharedoc_dir)
+ for fn in os.listdir(module_sharedoc_dir):
+ if fn == 'gui':continue
+ if fn == 'tui':continue
+ if fn == 'examples':continue
+ if fn == 'dev':continue
+ symlink(os.path.join(module_sharedoc_dir, fn), os.path.join(sharedoc_dir, fn))
+ pass
+ pass
+
+ #directory share/doc/salome/gui : create it and link content
+ if os.path.exists(module_sharedoc_gui_dir):
+ mkdir(sharedoc_gui_dir)
+ for fn in os.listdir(module_sharedoc_gui_dir):
+ symlink(os.path.join(module_sharedoc_gui_dir, fn), os.path.join(sharedoc_gui_dir, fn))
+ pass
+ pass
+
+ #directory share/doc/salome/tui : create it and link content
+ if os.path.exists(module_sharedoc_tui_dir):
+ mkdir(sharedoc_tui_dir)
+ for fn in os.listdir(module_sharedoc_tui_dir):
+ symlink(os.path.join(module_sharedoc_tui_dir, fn), os.path.join(sharedoc_tui_dir, fn))
+ pass
+ pass
+
+ #directory share/doc/salome/examples : create it and link content
+ if os.path.exists(module_sharedoc_examples):
+ mkdir(sharedoc_examples_dir)
+ for fn in os.listdir(module_sharedoc_examples):
+ symlink(os.path.join(module_sharedoc_examples, fn), os.path.join(sharedoc_examples_dir, fn))
+ pass
+ pass
+
+ #directory share/doc/salome/dev : create it and link content
+ if os.path.exists(module_sharedoc_dev):
+ mkdir(sharedoc_dev_dir)
+ for fn in os.listdir(module_sharedoc_dev):
+ symlink(os.path.join(module_sharedoc_dev, fn), os.path.join(sharedoc_dev_dir, fn))
+ pass
+ pass
+
+ #directory share/salome : create it and link content
+ if os.path.exists(module_share_dir):
+ mkdir(share_dir)
+ for fn in os.listdir(module_share_dir):
+ if fn in ["resources","plugins"] :
+ # Create the directory and then link the content
+ mkdir(os.path.join(share_dir,fn))
+ for ffn in os.listdir(os.path.join(module_share_dir,fn)):
+ symlink(os.path.join(module_share_dir, fn, ffn), os.path.join(share_dir,fn, ffn))
+ else:
+ #other directories (not resources)
+ symlink(os.path.join(module_share_dir, fn), os.path.join(share_dir, fn))
+ else:
+ print("share/salome directory %s does not exist" % module_share_dir)
+ pass