zx/unix/zxh

21 lines
387 B
Bash
Executable File

#! /bin/bash
if [ -f "$HOME/.bash_profile" ]
then
. "$HOME"/.bash_profile
fi
export ZOMP_DIR="${ZOMP_DIR:-$HOME/zomp}"
export ZX_VERSION=$(cat "$ZOMP_DIR/etc/version.txt")
export ZX_DIR="$ZOMP_DIR/lib/otpr/zx/$ZX_VERSION"
start_dir="$PWD"
cd "$ZX_DIR"
if [ ! -f ebin/zx.beam ]
then
chmod +x make_zx
./make_zx
fi
cd "$start_dir"
erl -pa "$ZX_DIR/ebin" -run zx do -extra $@