File: 0001-Adapt-path-to-Debian-expectations.patch

package info (click to toggle)
php-league-html-to-markdown 5.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 468 kB
  • sloc: php: 1,641; makefile: 20; xml: 15; sh: 5
file content (28 lines) | stat: -rw-r--r-- 861 bytes parent folder | download | duplicates (4)
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
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Fri, 15 Nov 2019 13:42:40 -1000
Subject: Adapt path to Debian expectations

Forwarded: not-needed
---
 bin/html-to-markdown | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/html-to-markdown b/bin/html-to-markdown
index 2815a7c..88cfa39 100755
--- a/bin/html-to-markdown
+++ b/bin/html-to-markdown
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!/usr/bin/php
 <?php
 
 requireAutoloader();
@@ -98,6 +98,8 @@ function requireAutoloader()
         __DIR__ . '/../vendor/autoload.php',
         // Package was included as a library
         __DIR__ . '/../../../autoload.php',
+        // Package was installed as a Debian package
+        __DIR__ . '/../share/php/League/HTMLToMarkdown/autoload.php',
     );
     foreach ($autoloadPaths as $path) {
         if (file_exists($path)) {