shrub/meson-scripts/make-worker.sh

15 lines
378 B
Bash
Raw Normal View History

2018-11-10 07:59:32 +03:00
#!/bin/bash
if ! [[ -d $MESON_SOURCE_ROOT/bin ]]; then
mkdir -p $MESON_SOURCE_ROOT/bin
fi
if [[ -d $MESON_BUILD_ROOT ]]; then
if [[ -f $MESON_BUILD_ROOT/urbit ]]; then
cp $MESON_BUILD_ROOT/urbit $MESON_SOURCE_ROOT/bin/
if ! [[ -f $MESON_SOURCE_ROOT/bin/urbit-worker ]]; then
ln -s $MESON_SOURCE_ROOT/bin/urbit $MESON_SOURCE_ROOT/bin/urbit-worker
fi
fi
fi