#Added by buildpkg 1.7.0
dotnew() {
        NEW="${1}.new"
        OLD="$1"
        if [ ! -e $OLD ]; then
                mv $NEW $OLD
        elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
                rm $NEW
        fi
}
dotnew etc/profile.d/ant.sh
dotnew etc/profile.d/ant.csh
dotnew etc/ant/checkstyle/checkstyle-frames.xsl
dotnew etc/ant/checkstyle/checkstyle-text.xsl
dotnew etc/ant/checkstyle/checkstyle-xdoc.xsl
dotnew etc/ant/ant-bootstrap.jar
dotnew etc/ant/changelog.xsl
dotnew etc/ant/coverage-frames.xsl
dotnew etc/ant/jdepend-frames.xsl
dotnew etc/ant/jdepend.xsl
dotnew etc/ant/junit-frames-xalan1.xsl
dotnew etc/ant/junit-frames.xsl
dotnew etc/ant/junit-noframes.xsl
dotnew etc/ant/log.xsl
dotnew etc/ant/maudit-frames.xsl
dotnew etc/ant/mmetrics-frames.xsl
dotnew etc/ant/tagdiff.xsl
( cd usr/share/apache-ant-1.8.0 ; rm -rf INSTALL )
( cd usr/share/apache-ant-1.8.0 ; ln -sf ../../doc/ant-1.8.0/INSTALL INSTALL )
( cd usr/share/apache-ant-1.8.0 ; rm -rf KEYS )
( cd usr/share/apache-ant-1.8.0 ; ln -sf ../../doc/ant-1.8.0/KEYS KEYS )
( cd usr/share/apache-ant-1.8.0 ; rm -rf LICENSE )
( cd usr/share/apache-ant-1.8.0 ; ln -sf ../../doc/ant-1.8.0/LICENSE LICENSE )
( cd usr/share/apache-ant-1.8.0 ; rm -rf LICENSE.dom )
( cd usr/share/apache-ant-1.8.0 ; ln -sf ../../doc/ant-1.8.0/LICENSE.dom LICENSE.dom )
( cd usr/share/apache-ant-1.8.0 ; rm -rf LICENSE.sax )
( cd usr/share/apache-ant-1.8.0 ; ln -sf ../../doc/ant-1.8.0/LICENSE.sax LICENSE.sax )
( cd usr/share/apache-ant-1.8.0 ; rm -rf LICENSE.xerces )
( cd usr/share/apache-ant-1.8.0 ; ln -sf ../../doc/ant-1.8.0/LICENSE.xerces LICENSE.xerces )
( cd usr/share/apache-ant-1.8.0 ; rm -rf NOTICE )
( cd usr/share/apache-ant-1.8.0 ; ln -sf ../../doc/ant-1.8.0/NOTICE NOTICE )
( cd usr/share/apache-ant-1.8.0 ; rm -rf README )
( cd usr/share/apache-ant-1.8.0 ; ln -sf ../../doc/ant-1.8.0/README README )
( cd usr/share/apache-ant-1.8.0 ; rm -rf WHATSNEW )
( cd usr/share/apache-ant-1.8.0 ; ln -sf ../../doc/ant-1.8.0/WHATSNEW WHATSNEW )
( cd usr/share ; rm -rf apache-ant )
( cd usr/share ; ln -sf apache-ant-1.8.0 apache-ant )
( cd usr/bin ; rm -rf ant )
( cd usr/bin ; ln -sf ../share/apache-ant/bin/ant ant )
