ceph/ceph-menv/build_links.sh
Yehuda Sadeh 30bebc266c ceph-menv: mrun shell environment
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2018-05-21 13:51:16 -07:00

17 lines
246 B
Bash
Executable File

#!/bin/bash
DIR=`dirname $0`
ROOT=$1
[ "$ROOT" == "" ] && ROOT="$HOME/ceph"
mkdir -p $DIR/bin
echo $PWD
for f in `ls $ROOT/build/bin`; do
echo $f
ln -sf ../mdo.sh $DIR/bin/$f
done
echo "MRUN_CEPH_ROOT=$ROOT" > $DIR/.menvroot