[137073] trunk/dports/print/ghostscript/Portfile

Ryan Schmidt ryandesign at macports.org
Thu Jun 4 08:08:12 PDT 2015


> On Jun 4, 2015, at 12:54 AM, larryv at macports.org wrote:
> 
> Revision
> 137073
> Author
> larryv at macports.org
> Date
> 2015-06-03 22:54:00 -0700 (Wed, 03 Jun 2015)
> Log Message
> 
> ghostscript: Don't choke if `distpath` or `workpath` contains spaces

but probably do still choke if they contain apostrophes :P

There should be a quoting function we use instead... don't we have one yet?

>  post-extract {
> -    system -W ${workpath} "unzip ${distpath}/${mappingresources_commit}.zip"
> -    system -W ${workpath} "unzip ${workpath}/mapping-resources-pdf-${mappingresources_commit}/mappingresources4pdf_2unicode.zip"
> -    system -W ${workpath} "unzip ${workpath}/mapping-resources-pdf-${mappingresources_commit}/mappingresources4pdf_other.zip"
> +    system -W ${workpath} "unzip '${distpath}/${mappingresources_commit}.zip'"
> +    system -W ${workpath} "unzip '${workpath}/mapping-resources-pdf-${mappingresources_commit}/mappingresources4pdf_2unicode.zip'"
> +    system -W ${workpath} "unzip '${workpath}/mapping-resources-pdf-${mappingresources_commit}/mappingresources4pdf_other.zip'"



More information about the macports-dev mailing list