summaryrefslogtreecommitdiffstats
path: root/php-bartlett-umlwriter-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-bartlett-umlwriter-rpm.patch')
-rw-r--r--php-bartlett-umlwriter-rpm.patch18
1 files changed, 5 insertions, 13 deletions
diff --git a/php-bartlett-umlwriter-rpm.patch b/php-bartlett-umlwriter-rpm.patch
index a32dd8b..9b6dca6 100644
--- a/php-bartlett-umlwriter-rpm.patch
+++ b/php-bartlett-umlwriter-rpm.patch
@@ -1,7 +1,7 @@
diff -up ./bin/umlwriter.rpm ./bin/umlwriter
---- ./bin/umlwriter.rpm 2015-04-02 13:07:20.000000000 +0200
-+++ ./bin/umlwriter 2015-06-26 10:34:32.782633902 +0200
-@@ -2,23 +2,14 @@
+--- ./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';
@@ -16,16 +16,8 @@ diff -up ./bin/umlwriter.rpm ./bin/umlwriter
- }
-}
-require_once $vendorDir . '/autoload.php';
--
- if (PHP_SAPI !== 'cli') {
- return;
- }
-
+$vendorDir = '/usr/share/php';
+require_once $vendorDir . '/Bartlett/UmlWriter/autoload.php';
-+
- use Bartlett\UmlWriter\Console\Application;
--$application = new Application($appName, '1.3');
-+$application = new Application($appName, '@package_version@');
- $application->run();
+ if (PHP_SAPI !== 'cli') {
+ return;