[MacPorts] #55805: Wrong path in markdown script
MacPorts
noreply at macports.org
Sun Feb 11 21:27:34 UTC 2018
#55805: Wrong path in markdown script
----------------------------+-----------------
Reporter: angelog0 | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: multimarkdown |
----------------------------+-----------------
Comment (by angelog0):
Replying to [ticket:55805 angelog0]:
>
> I think that for MacPorts you should patch it so that the PATH points to
the MacPorts PATH
>
>
> {{{
> --- markdown.bkp 2017-11-20 20:47:17.000000000 +0100
> +++ markdown 2018-02-11 17:44:30.000000000 +0100
> @@ -8,7 +8,7 @@
> #
>
> # Be sure to include multimarkdown in our PATH
> -export PATH="$PWD:/usr/local/bin:$PATH"
> +export PATH="$PWD:/opt/local/bin:$PATH"
>
> which multimarkdown > /dev/null
> if [ $? = 1 ]
> }}}
Also this works
{{{
--- markdown.bkp 2017-11-20 20:47:17.000000000 +0100
+++ markdown 2018-02-11 22:15:57.000000000 +0100
@@ -7,8 +7,10 @@
# Pass arguments on to the binary to convert text to XHTML
#
+pwd="${0%/*}"
+
# Be sure to include multimarkdown in our PATH
-export PATH="$PWD:/usr/local/bin:$PATH"
+export PATH="$pwd:/usr/local/bin:$PATH"
which multimarkdown > /dev/null
if [ $? = 1 ]
}}}
>
> Ciao,
> Angelo.
>
>
--
Ticket URL: <https://trac.macports.org/ticket/55805#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list