pkg(dragon-1.9.8): Add dragon 1.9.8 (#220)
* pkg(dragon-1.9.8): Add dragon 1.9.8 * pkg(dragon-1.9.8): Remove manpages and self alias
This commit is contained in:
parent
8424307029
commit
e975b64f2d
|
@ -0,0 +1,25 @@
|
||||||
|
#!/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
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# dragon binary & java runtime path
|
||||||
|
export PATH=$PWD/bin:$PATH
|
||||||
|
export JAVA_RUNTIME=$PWD/bin/runtime/bin/java
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"language": "dragon",
|
||||||
|
"version": "1.9.8",
|
||||||
|
"aliases": []
|
||||||
|
}
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# dragon run
|
||||||
|
dragon -r "$@"
|
|
@ -0,0 +1 @@
|
||||||
|
showln "OK"
|
Loading…
Reference in New Issue