piston/packages/dragon/1.9.8/build.sh

26 lines
472 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Dragon install
mkdir -p build
cd build
curl "https://dragon-lang.org/Dragon_1.9.8_linux(x86_x64).tar.bz2" -o dragon.tar.bz2
tar xjf dragon.tar.bz2 --strip-components=1
### re-purposed the install script for local install and without manpages
mkdir -p ../bin
cp dragon ../bin/
chmod +x ../bin/dragon
cp -r runtime ../bin/
chmod +x ../bin/runtime/bin/java
sed -i 's|/bin/runtime/bin/java|$JAVA_RUNTIME|g' ../bin/dragon
###
cd ../
rm -rf build