Google Closure Compiler: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 33: | Line 33: | ||
sudo update-alternatives --install /usr/bin/closure-compiler closure-compiler\ | sudo update-alternatives --install /usr/bin/closure-compiler closure-compiler\ | ||
/opt/cli/closure-compiler-20200719/bin/closure-compiler 1983 | /opt/cli/closure-compiler-20200719/bin/closure-compiler 1983 | ||
</source> | |||
==Knowledge== | |||
<source lang="bash"> | |||
sudo chmod +x /opt/cli/closure-compiler-20200719/closure-compiler-v20200719.jar | |||
stat -c '%a' /opt/cli/closure-compiler-20200719/closure-compiler-v20200719.jar | |||
stat /opt/cli/closure-compiler-20200719/closure-compiler-v20200719.jar | |||
</source> | </source> | ||
Revision as of 17:47, 8 July 2022
sudo wget -c https://dl.google.com\
/closure-compiler/compiler-20200719.zip -P /opt/cli/
sudo mkdir -p /opt/cli/closure-compiler-20200719
sudo unzip /opt/cli/compiler-20200719.zip -d /opt/cli/closure-compiler-20200719
sudo rm -rf /opt/cli/compiler-20200719.zip
sudo mkdir -p /opt/cli/closure-compiler-20200719/bin
sudo touch /opt/cli/closure-compiler-20200719/bin/closure-compiler
sudo chmod +x /opt/cli/closure-compiler-20200719/bin/closure-compiler
sudo tee -a /opt/cli/closure-compiler-20200719/bin/closure-compiler >/dev/null <<'EOF'
#!/bin/bash
: '
@vendor Chorke Academia, Inc.
@web https://cdn.chorke.org/docs/academia
@version 1.0.00
@since 1.0.00
'
export CLOSURE_COMPILER_HOME='/opt/cli/closure-compiler-20200719'
export CLOSURE_COMPILER_EXEC="java -jar ${CLOSURE_COMPILER_HOME}/closure-compiler-v20200719.jar"
if [ -f "${JAVA_HOME}/bin/java" ];then ${JAVA_HOME}/bin/${CLOSURE_COMPILER_EXEC}
elif [ -x "$(command -v java)" ];then ${CLOSURE_COMPILER_EXEC}
else printf '\njava 3 \033[0;31mnot found! \033[0m:(\n';fi
EOF
sudo update-alternatives --install /usr/bin/closure-compiler closure-compiler\
/opt/cli/closure-compiler-20200719/bin/closure-compiler 1983
Knowledge
sudo chmod +x /opt/cli/closure-compiler-20200719/closure-compiler-v20200719.jar
stat -c '%a' /opt/cli/closure-compiler-20200719/closure-compiler-v20200719.jar
stat /opt/cli/closure-compiler-20200719/closure-compiler-v20200719.jar
References
| ||