-
-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7897 from totten/4.6-tcpdf
CRM-18098. Move TCPDF from packages to composer.
- Loading branch information
Showing
4 changed files
with
119 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -34,8 +34,6 @@ | |
* | ||
*/ | ||
|
||
require_once 'tcpdf/tcpdf.php'; | ||
|
||
/** | ||
* Class CRM_Utils_PDF_Label | ||
*/ | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
## Cleanup the vendor tree. The main issue here is that civi Civi is | ||
## deployed as a module inside a CMS, so all its source-code gets published. | ||
## Some libraries distribute admin tools and sample files which should not | ||
## be published. | ||
## | ||
## This script should be idempotent -- if you rerun it several times, it | ||
## should always produce the same post-condition. | ||
|
||
############################################################################## | ||
## usage: safe_delete <relpath...> | ||
function safe_delete() { | ||
for file in "$@" ; do | ||
if [ -z "$file" ]; then | ||
echo "Skip: empty file name" | ||
elif [ -e "$file" ]; then | ||
rm -rf "$file" | ||
fi | ||
done | ||
} | ||
|
||
############################################################################## | ||
## Remove example/CLI scripts. They're not needed and increase the attack-surface. | ||
safe_delete vendor/tecnickcom/tcpdf/examples | ||
safe_delete vendor/tecnickcom/tcpdf/tools | ||
|
||
## Remove all fonts not included before CRM-18098. | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/a* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/ci* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/courierb* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/courieri* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/dejavu-fonts-ttf-2.33 | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/dejavusansb* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/dejavusansc* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/dejavusanse* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/dejavusansi* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/dejavusansm* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/dejavuserif* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/free* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/helveticab* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/helveticai* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/k* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/m* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/p* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/s* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/u* | ||
safe_delete vendor/tecnickcom/tcpdf/fonts/z* |