]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
install salome auto-completion file
authorCédric Aguerre <cedric.aguerre@edf.fr>
Wed, 4 Mar 2015 17:13:34 +0000 (18:13 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Wed, 4 Mar 2015 17:13:34 +0000 (18:13 +0100)
bin/appli_gen.py
bin/appliskel/.salome-completion.sh
bin/appliskel/CMakeLists.txt

index b80ea2c29c349b995fcb297180ed517f7c60f3df..ffb36a7f8c9e3abc30eac5d133e10df5ac0b2ebe 100644 (file)
@@ -215,11 +215,17 @@ def install(prefix, config_file, verbose=0):
         shutil.copyfile(filename, os.path.join(home_dir,"config_appli.xml"))
         pass
 
+
+    # Add .salome-completion.sh file
+    shutil.copyfile(os.path.join(appliskel_dir, ".salome-completion.sh"),
+                    os.path.join(home_dir, ".salome-completion.sh"))
+
+
     # Creation of env.d directory
     virtual_salome.mkdir(os.path.join(home_dir,'env.d'))
 
     if _config.has_key("prereq_path") and os.path.isfile(_config["prereq_path"]):
-        shutil.copyfile(_config["prereq_path"], 
+        shutil.copyfile(_config["prereq_path"],
                         os.path.join(home_dir, 'env.d', 'envProducts.sh'))
         pass
     else:
@@ -235,11 +241,10 @@ def install(prefix, config_file, verbose=0):
         pass
 
     if _config.has_key("system_conf_path") and os.path.isfile(_config["system_conf_path"]):
-        shutil.copyfile(_config["system_conf_path"], 
+        shutil.copyfile(_config["system_conf_path"],
                         os.path.join(home_dir, 'env.d', 'envConfSystem.sh'))
         pass
 
-
     # Create environment file: configSalome.sh
     with open(os.path.join(home_dir, 'env.d', 'configSalome.sh'),'w') as f:
         for module in _config.get("modules", []):
@@ -335,7 +340,7 @@ def main():
                       metavar="<configuration file>",
                       help="XML configuration file (default %(default)s)")
 
-    parser.add_argument('-v', '--verbose', action='count', 
+    parser.add_argument('-v', '--verbose', action='count',
                       default=0, help="Increase verbosity")
 
     options = parser.parse_args()
index 0a54a80c5eabe3d762a6ba8ede4ef6be2eb29ef0..273878609e5cf1f96e3b019d9a426ad316354406 100644 (file)
@@ -74,7 +74,7 @@ _salome()
                     options='-t --terminal -g --gui -d --show-desktop= -o --hide-desktop -b --batch -l --logger -f --log-file= -r --resources= -x --xterm -m --modules= -e --embedded= -s --standalone= -p --portkill -k --killall -i --interp= -z --splash= -c --catch-exceptions= --print-port --nosave-config --pinter --ns-port-log= --test= --play= --gdb-session --ddd-session --valgrind-session -w --shutdown-servers= --foreground= --wake-up-session --server-launch-mode= --port= --siman --siman-study= --siman-scenario= --siman-user= --version -h --help --with-mpi-module='
                     ;;
                 shell)
-                    options='-h --help -p --port= -m --machine= --with-mpi-module='
+                    options='-h --help -p --port= -m --machine= -d --directory= -u --user= --with-mpi-module='
                     ;;
             esac
             COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
index 7bf876b113871ec7a737e1e1faf24ed852bedc5b..11eafbe76a9ee08d92618deb223b938b58d30b13 100755 (executable)
@@ -37,6 +37,7 @@ SET(SCRIPTS
   kill_remote_containers.py
   salome # this is the Python launcher (without .py extension to avoid conflicts when importing salome python package)
   salome_starter.py
+  .salome-completion.sh
 )
 
 SALOME_INSTALL_SCRIPTS("${SCRIPTS}" ${SALOME_INSTALL_SCRIPT_SCRIPTS}/appliskel)