-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
100 changed files
with
2,942 additions
and
3,066 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
#!/usr/bin/env sh | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../matthiasmullie/minify/bin" && pwd) | ||
/** | ||
* Proxy PHP file generated by Composer | ||
* | ||
* This file includes the referenced bin path (../matthiasmullie/minify/bin/minifycss) using eval to remove the shebang if present | ||
* | ||
* @generated | ||
*/ | ||
|
||
if [ -d /proc/cygdrive ]; then | ||
case $(which php) in | ||
$(readlink -n /proc/cygdrive)/*) | ||
# We are in Cygwin using Windows php, so the path must be translated | ||
dir=$(cygpath -m "$dir"); | ||
;; | ||
esac | ||
fi | ||
$binPath = realpath(__DIR__ . "/" . '../matthiasmullie/minify/bin/minifycss'); | ||
$contents = file_get_contents($binPath); | ||
$contents = preg_replace('{^#!/.+\r?\n<\?(php)?}', '', $contents, 1, $replaced); | ||
if ($replaced) { | ||
$contents = strtr($contents, array( | ||
'__FILE__' => var_export($binPath, true), | ||
'__DIR__' => var_export(dirname($binPath), true), | ||
)); | ||
|
||
"${dir}/minifycss" "$@" | ||
eval($contents); | ||
exit(0); | ||
} | ||
include $binPath; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
#!/usr/bin/env sh | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
dir=$(cd "${0%[/\\]*}" > /dev/null; cd "../matthiasmullie/minify/bin" && pwd) | ||
/** | ||
* Proxy PHP file generated by Composer | ||
* | ||
* This file includes the referenced bin path (../matthiasmullie/minify/bin/minifyjs) using eval to remove the shebang if present | ||
* | ||
* @generated | ||
*/ | ||
|
||
if [ -d /proc/cygdrive ]; then | ||
case $(which php) in | ||
$(readlink -n /proc/cygdrive)/*) | ||
# We are in Cygwin using Windows php, so the path must be translated | ||
dir=$(cygpath -m "$dir"); | ||
;; | ||
esac | ||
fi | ||
$binPath = realpath(__DIR__ . "/" . '../matthiasmullie/minify/bin/minifyjs'); | ||
$contents = file_get_contents($binPath); | ||
$contents = preg_replace('{^#!/.+\r?\n<\?(php)?}', '', $contents, 1, $replaced); | ||
if ($replaced) { | ||
$contents = strtr($contents, array( | ||
'__FILE__' => var_export($binPath, true), | ||
'__DIR__' => var_export(dirname($binPath), true), | ||
)); | ||
|
||
"${dir}/minifyjs" "$@" | ||
eval($contents); | ||
exit(0); | ||
} | ||
include $binPath; |
Oops, something went wrong.