Add Text_Highlighter to Composer
- Fixes critical mistake in boot.php regarding set_include_path - Fixes minor mistake in text.php regarding strpos order of arguments Note: This change significantly increases Composer running time because Text_Highlither is a PEAR package. I'm already planning to replace it with scrivo/highlight.php.
This commit is contained in:
parent
6494d05dde
commit
1ab28bbe03
176 changed files with 52674 additions and 489 deletions
15
vendor/bin/composer-php
vendored
Normal file
15
vendor/bin/composer-php
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env sh
|
||||
SRC_DIR=`pwd`
|
||||
BIN_DIR=`dirname $0`
|
||||
VENDOR_DIR=$BIN_DIR/"../"
|
||||
DIRS=""
|
||||
for vendor in $VENDOR_DIR/*; do
|
||||
if [ -d "$vendor" ]; then
|
||||
for package in $vendor/*; do
|
||||
if [ -d "$package" ]; then
|
||||
DIRS="${DIRS}:${package}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
php -d include_path=".$DIRS" $@
|
||||
11
vendor/bin/composer-php.bat
vendored
Normal file
11
vendor/bin/composer-php.bat
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
set BIN_DIR=%~dp0
|
||||
set VENDOR_DIR=%BIN_DIR%\../
|
||||
set DIRS=.
|
||||
FOR /D %%V IN (%VENDOR_DIR%\*) DO (
|
||||
FOR /D %%P IN (%%V\*) DO (
|
||||
set DIRS=!DIRS!;%%~fP
|
||||
)
|
||||
)
|
||||
php.exe -d include_path=!DIRS! %*
|
||||
17
vendor/bin/generate
vendored
Normal file
17
vendor/bin/generate
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
dir=$(d=${0%[/\\]*}; cd "$d"; cd "../pear-pear.php.net/Text_Highlighter/bin" && pwd)
|
||||
|
||||
# See if we are running in Cygwin by checking for cygpath program
|
||||
if command -v 'cygpath' >/dev/null 2>&1; then
|
||||
# Cygwin paths start with /cygdrive/ which will break windows PHP,
|
||||
# so we need to translate the dir path to windows format. However
|
||||
# we could be using cygwin PHP which does not require this, so we
|
||||
# test if the path to PHP starts with /cygdrive/ rather than /usr/bin
|
||||
if [[ $(which php) == /cygdrive/* ]]; then
|
||||
dir=$(cygpath -m "$dir");
|
||||
fi
|
||||
fi
|
||||
|
||||
dir=$(echo $dir | sed 's/ /\ /g')
|
||||
"${dir}/generate" "$@"
|
||||
7
vendor/bin/generate.bat
vendored
Normal file
7
vendor/bin/generate.bat
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@echo off
|
||||
pushd .
|
||||
cd %~dp0
|
||||
cd "../pear-pear.php.net/Text_Highlighter/bin"
|
||||
set BIN_TARGET=%CD%\generate
|
||||
popd
|
||||
composer-php "%BIN_TARGET%" %*
|
||||
7
vendor/bin/pear.bat
vendored
Normal file
7
vendor/bin/pear.bat
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@echo off
|
||||
pushd .
|
||||
cd %~dp0
|
||||
cd "../pear-pear.php.net/PEAR/bin"
|
||||
set BIN_TARGET=%CD%\pear.bat
|
||||
popd
|
||||
call "%BIN_TARGET%" %*
|
||||
7
vendor/bin/peardev.bat
vendored
Normal file
7
vendor/bin/peardev.bat
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@echo off
|
||||
pushd .
|
||||
cd %~dp0
|
||||
cd "../pear-pear.php.net/PEAR/bin"
|
||||
set BIN_TARGET=%CD%\peardev.bat
|
||||
popd
|
||||
call "%BIN_TARGET%" %*
|
||||
7
vendor/bin/pecl.bat
vendored
Normal file
7
vendor/bin/pecl.bat
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
@echo off
|
||||
pushd .
|
||||
cd %~dp0
|
||||
cd "../pear-pear.php.net/PEAR/bin"
|
||||
set BIN_TARGET=%CD%\pecl.bat
|
||||
popd
|
||||
call "%BIN_TARGET%" %*
|
||||
Loading…
Add table
Add a link
Reference in a new issue