Closed bergatt closed 9 years ago
I was working on the scripts yesterday, you maybe fetched a bad state. On my machine everthing is building from scretch now.
Additionally, if you source mars_install_scripts/auto_complete.sh you can use the
Can you test wether you still have problems, please?
When I do the following
mac-pro-2:bergatt bergatt$ cd Repositories/mars/mars_install_scripts
mac-pro-2: mars_install_scripts bergatt$ bash mars.sh bootstrap
everything works like a charm!
But I have problems using the auto-completion:
(1) I have to source auto_complete.sh
one folder "above" the mars_install_scripts
folder
mac-pro-2:mars_install_scripts bergatt$ cd ..
mac-pro-2:mars bergatt$ source mars_install_scripts/auto_complete.sh
otherwise I get an error!
mac-pro-2:mars_install_scripts bergatt$ source auto_complete.sh
dirname: illegal option -- b
usage: dirname path
(2) Auto-completion is working, but not for me, I guess.
mac-pro-2:mars bergatt$ source mars_install_scripts/auto_complete.sh
mac-pro-2:mars bergatt$ mars.sh install lib_manager # auto-completion is working, but still
-bash: mars.sh: command not found
mac-pro-2:mars bergatt$ cd mars_install_scripts/
mac-pro-2:mars_install_scripts bergatt$ mars.sh install lib_manager # auto-completion is working, but still
-bash: mars.sh: command not found
mac-pro-2:mars_install_scripts bergatt$ bash mars.sh install lib_manager # auto-completion is NOT working, but it does the job
path: .
package: lib_manager
folder: lib_manager
/Users/bergatt/Repositories/mars/.
/Users/bergatt/Repositories/mars/mars_install_scripts/patches/lib_manager.patch
path: .
package: lib_manager
folder: lib_manager
building lib_manager ...
...
mac-pro-2:mars_install_scripts bergatt$ mars.sh bootstrap # auto-completion is working
-bash: mars.sh: command not found
mac-pro-2:mars_install_scripts bergatt$ mars.sh # auto-completion is working
-bash: mars.sh: command not found
mac-pro-2:mars_install_scripts bergatt$ bash mars.sh # auto-completion is NOT working
Error: Please specify an action. Your options are:
bootstrap, fetch, update, install, rebuild, clean, or uninstall
So what I figured out is: It's not working with bash
. But you can use it like the following from the mars_install_scripts
folder:
mac-pro-2:mars_install_scripts bergatt$ ./mars.sh install lib_manager # auto-completion is running and it does the job
Hope this helps!
P.S.: I think we can close the Issue because the main problem is solved. Somehow I just have to figure out how to use the auto-completion the right way. Oh, by the way, I really like the new aliases in the env.sh
scripts!!!!!
You always have to run the script with ./mars.sh or from the folder above mars_install_scripts/mars.sh like before. The auto_complete.sh only enables to use the "tab"-key for the arguments of the script. The right way was to use ". auto_complete.sh" in the mars_install_scripts folder. The error message could be ignored and is fixed by my last commit. After recreation of the "env.sh" also the auto_complete.sh is automatically sourced by sourcing the env.sh and you do not have to do it again. The autocompletion is only working if you start the mars.sh as executable (./mars.sh or /path_to_mars_sh/mars.sh"). If you use "bash mars.sh", bash is the executable so the completion is done for bash and not for mars.sh.
Hi,
I was just trying the new installation scripts and it failed. But I don't know why? Any ideas? @malter
Regards, Constantin