diff options
author | Yves Fischer <yves.fischer@cern.ch> | 2016-05-24 19:29:09 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2016-05-26 20:01:07 +0200 |
commit | 283845b18c97cfbae75e39ae89fbaed2e1ee0a91 (patch) | |
tree | a452b085e4b1a3bf3fb40bfd87639e228bb7f3f3 /packages/scripts/resources/lib/activate.inc.sh | |
parent | fd1e0cea253494df43aa5702c6796cf1f79ad746 (diff) | |
download | debian-packages-283845b18c97cfbae75e39ae89fbaed2e1ee0a91.tar.gz debian-packages-283845b18c97cfbae75e39ae89fbaed2e1ee0a91.zip |
update scripts
Diffstat (limited to 'packages/scripts/resources/lib/activate.inc.sh')
-rw-r--r-- | packages/scripts/resources/lib/activate.inc.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/scripts/resources/lib/activate.inc.sh b/packages/scripts/resources/lib/activate.inc.sh index 79bed6b..b77b9fd 100644 --- a/packages/scripts/resources/lib/activate.inc.sh +++ b/packages/scripts/resources/lib/activate.inc.sh @@ -1,3 +1,17 @@ +# use to process /opt/activator entries +__activator() { + for product in $*; do + if [ -d "/opt/activator/$product/env" ]; then + for env in /opt/activator/$product/env/*; do + name=$(basename "$env") + eval "export '$name'='$(cat $env)'" + done + fi + if [ -d "/opt/activator/$product/bin" ]; then + export PATH="/opt/activator/$product/bin":$PATH + fi + done +} # non-interactive activate __activate_env() { |