summaryrefslogtreecommitdiffstats
path: root/php-tecnickcom-tc-lib-pdf-font-rpm.patch
blob: 2ef076eb38a28de5d64118d2af654c95a45f2ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff -up util/bulk_convert.php.rpm util/bulk_convert.php
--- util/bulk_convert.php.rpm	2023-11-29 08:34:27.788544032 +0100
+++ util/bulk_convert.php	2023-11-29 08:36:54.124053746 +0100
@@ -86,7 +86,7 @@ if (!is_writable($options['outpath'])) {
     exit(2);
 }
 
-$ttfdir = __DIR__.'/vendor/tecnickcom/tc-font-mirror/';
+$ttfdir = dirname(__DIR__).'/tc-font-mirror-2.1.0/';
 if (!is_dir($ttfdir)) {
     fwrite(STDERR, 'ERROR: The '.$ttfdir.' directory is empty, please execute \'make build\' before this command.'."\n\n");
     exit(3);
@@ -98,7 +98,7 @@ fwrite(STDOUT, "\n".'>>> Converting font
 $convert_errors = 0;
 $convert_success = 0;
 
-require_once (dirname(__DIR__).'/vendor/autoload.php');
+require_once (dirname(__DIR__).'/src/autoload.php');
 
 $fontdir = array_diff(scandir($ttfdir), array('.', '..', '.git'));
 
diff -up util/convert.php.rpm util/convert.php
--- util/convert.php.rpm	2023-11-29 13:46:32.380588175 +0100
+++ util/convert.php	2023-11-29 13:46:34.960688370 +0100
@@ -224,7 +224,7 @@ fwrite(STDOUT, "\n".'>>> Converting font
 $convert_errors = 0;
 $convert_success = 0;
 
-require_once (dirname(dirname(__DIR__)).'/vendor/autoload.php');
+require_once ('/usr/share/php/Com/Tecnick/Pdf/Font/autoload.php');
 
 foreach ($options['fonts'] as $font) {
     try {