Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- set -eu
- LUVI_VERSION=${LUVI_VERSION:-2.12.0}
- LIT_VERSION=${LIT_VERSION:-3.8.5}
- LUVI_ARCH=`uname -s`_`uname -m`
- RUN_PATH=$PWD
- LUVI_URL="https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-regular-$LUVI_ARCH"
- LIT_URL="https://lit.luvit.io/packages/luvit/lit/v$LIT_VERSION.zip"
- # Get luvi
- if [ "$LUVI_ARCH" != "Linux_aarch64" ]; then
- echo "Downloading $LUVI_URL to luvi"
- curl -L -f -o luvi $LUVI_URL
- chmod +x luvi
- else
- echo "Downloading luvi repo and build"
- git clone --recursive https://github.com/luvit/luvi.git
- mv luvi $RUN_PATH/luvi_source
- cd luvi_source
- make regular
- make
- mv $PWD/build/luvi $RUN_PATH/luvi
- cd $RUN_PATH
- fi
- # Get lit
- echo "Downloading $LIT_URL to lit.zip"
- curl -L -f -o lit.zip $LIT_URL
- # Create lit using lit
- ./luvi lit.zip -- make lit.zip lit luvi
- # Create luvit using lit
- ./lit make lit://luvit/luvit luvit luvi
- # Cleanup
- rm -f lit.zip
- rm -rf $RUN_PATH/luvi_source
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement