Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

#147 - fix optipng under unix #150

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 9 additions & 3 deletions build.xml
Expand Up @@ -974,6 +974,7 @@
<if>
<os family="unix"/>
<then>
<var name="os.family" value="unix"/>
<if>
<!-- Then check for availability if unix -->
<available file="optipng" filepath="${ENV.PATH}"/>
Expand All @@ -997,9 +998,6 @@
<var name="optipng.available" value="false"/>
</else>
</if>

<!-- Temporarily fixes #39 -->
<var name="strip-meta-tags" value=""/>
</then>
</if>

Expand Down Expand Up @@ -1038,6 +1036,14 @@
</then>
</if>

<!-- fix for #39/#46 as proposed in #147 -->
<if>
<equals arg1="${strip-meta-tags}" arg2="" />
<then>
<var name="strip-meta-tags" value="-quiet"/>
</then>
</if>

<apply executable="${optipng.executable}" dest="./${dir.publish}/${relative.image.dir}/" osfamily="${os.family}">
<fileset dir="./${dir.source}/${relative.image.dir}/" includes="**/*.png" excludes="${images.bypass}, ${images.default.bypass}"/>
<arg value="-quiet"/>
Expand Down