pkg(cjam-0.6.5): Run jar file normally and remove self alias

This commit is contained in:
Dan Vargas 2021-04-21 21:21:02 -05:00
parent 31c40293f2
commit e287b8de3f
4 changed files with 4 additions and 15 deletions

View file

@ -4,15 +4,3 @@
source ../../java/15.0.2/build.sh
curl -L "https://downloads.sourceforge.net/project/cjam/cjam-0.6.5/cjam-0.6.5.jar?ts=gAAAAABgf6xp4bmSJmNMjz8z23zWVbRgW6mhaFrnxdBe_riqC4rZnhUpXJrQzPpSqhniaoGptfkI_r-tjjBc5326oRmloXIJYQ%3D%3D&r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcjam%2Ffiles%2Fcjam-0.6.5%2Fcjam-0.6.5.jar%2Fdownload" -o bin/cjam.jar
# Really executable jar
cat <<EOF > bin/cjam
#!/bin/sh
exec java -jar \$0 "\$@"
EOF
cat bin/cjam.jar >> bin/cjam
chmod +x bin/cjam

View file

@ -2,3 +2,4 @@
# CJam and Java Path
export PATH=$PWD/bin:$PATH
export CJAM_PATH=$PWD/bin

View file

@ -1,5 +1,5 @@
{
"language": "cjam",
"version": "0.6.5",
"aliases": ["cjam"]
"aliases": []
}

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
# CJam jar executable
cjam "$@"
# run cjam jar
java -jar "$CJAM_PATH"/cjam.jar "$@"