зеркало из https://github.com/Azure/azurehpc.git
19 строки
373 B
Bash
Executable File
19 строки
373 B
Bash
Executable File
#!/bin/bash
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
if [ ! -d "$DIR/bin" ]; then
|
|
mkdir $DIR/bin
|
|
fi
|
|
pushd $DIR/bin >/dev/null
|
|
for fullpath in $DIR/libexec/azhpc-*.sh; do
|
|
fname=${fullpath##*/}
|
|
if [ ! -L "${fname%%.sh}" ]; then
|
|
ln -s $fullpath ${fname%%.sh}
|
|
fi
|
|
done
|
|
popd >/dev/null
|
|
|
|
export PATH=${DIR}/bin:$PATH
|
|
export azhpc_dir=$DIR
|
|
|