Separate platform-specific installers

This commit is contained in:
2020-01-20 15:50:43 +09:00
parent 4e3c5d7202
commit 3ed1513ea3
12 changed files with 100 additions and 197 deletions
-20
View File
@@ -1,20 +0,0 @@
#!/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.erl ]
then
chmod +x make_zx
./make_zx
fi
cd "$start_dir"
erl -noshell -pa "$ZX_DIR/ebin" -run zx do -extra $@
-13
View File
@@ -1,13 +0,0 @@
@ECHO OFF
REM Prepare the environment for ZX and launch it
set ZOMP_DIR="%LOCALAPPDATA%\zomp"
set ZOMP_DIR=%ZOMP_DIR:"=%
set /P ZX_VERSION=<"%ZOMP_DIR%\etc\version.txt"
set ZX_DIR=%ZOMP_DIR%\lib\otpr\zx\%ZX_VERSION%
set ZX_DIR=%ZX_DIR:"=%
pushd "%ZX_DIR%"
if not exist ebin\zx.erl "C:\Program Files\erl10.6\bin\escript.exe" make_zx
popd
"C:\Program Files\erl10.6\bin\erl.exe" -noshell -pa "%ZX_DIR%/ebin" -run zx do -extra %*
-20
View File
@@ -1,20 +0,0 @@
#!/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.erl ]
then
chmod +x make_zx
./make_zx
fi
cd "$start_dir"
erl -pa "$ZX_DIR/ebin" -run zx do -extra $@
-13
View File
@@ -1,13 +0,0 @@
@ECHO OFF
REM Prepare the environment for ZX and launch it
set ZOMP_DIR="%LOCALAPPDATA%\zomp"
set ZOMP_DIR=%ZOMP_DIR:"=%
set /P ZX_VERSION=<"%ZOMP_DIR%\etc\version.txt"
set ZX_DIR=%ZOMP_DIR%\lib\otpr\zx\%ZX_VERSION%
set ZX_DIR=%ZX_DIR:"=%
pushd "%ZX_DIR%"
if not exist ebin\zx.erl "C:\Program Files\erl10.6\bin\escript.exe" make_zx
popd
"C:\Program Files\erl10.6\bin\werl.exe" -pa "%ZX_DIR%/ebin" -run zx do -extra %*