summaryrefslogtreecommitdiffstats
path: root/php-bartlett-umlwriter-rpm.patch
blob: 9b6dca66ae4823ecfae378a27efbe4514e14d536 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff -up ./bin/umlwriter.rpm ./bin/umlwriter
--- ./bin/umlwriter.rpm	2019-11-25 07:34:20.748457734 +0100
+++ ./bin/umlwriter	2019-11-25 07:35:39.059933977 +0100
@@ -2,17 +2,8 @@
 <?php
 $appName = 'umlWriter';
 
-if (\Phar::running()) {
-    $vendorDir = 'phar://' . strtolower($appName) . '.phar/vendor';
-} else {
-    $baseDir   = dirname(__DIR__);
-    $vendorDir = $baseDir . '/vendor';
-
-    if (!file_exists($vendorDir . '/autoload.php')) {
-        $vendorDir = dirname(dirname($baseDir));
-    }
-}
-require_once $vendorDir . '/autoload.php';
+$vendorDir = '/usr/share/php';
+require_once $vendorDir . '/Bartlett/UmlWriter/autoload.php';
 
 if (PHP_SAPI !== 'cli') {
     return;