Changeset 71990


Ignore:
Timestamp:
Sep 29, 2010, 3:48:35 PM (7 years ago)
Author:
ryandesign@…
Message:

epubcheck: simplify wrapper script and allow it to handle files with spaces in their names; see #26664

Location:
trunk/dports/textproc/epubcheck
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/epubcheck/Portfile

    r71919 r71990  
    66name                    epubcheck
    77version                 1.0.5
     8revision                1
    89categories              textproc
    910platforms               darwin
  • trunk/dports/textproc/epubcheck/files/epubcheck.in

    r71919 r71990  
    11#!/usr/bin/env sh
    2 
    3 MYTMP=/tmp/epubcheck$$.txt
    4 
    5 java -classpath @@EPUBCHECK@@ -jar @@EPUBCHECK@@/epubcheck.jar $@ 2>&1 | tee ${MYTMP}
    6 
    7 MYERR=$(grep "^ERROR" ${MYTMP} | wc -l)
    8 
    9 rm -f ${MYTMP}
    10 
    11 if [ ${MYERR} -ne 0 ]; then
    12     exit 1
    13 fi
    14 
    15 exit 0
     2exec java -classpath @@EPUBCHECK@@ -jar @@EPUBCHECK@@/epubcheck.jar "$@"
Note: See TracChangeset for help on using the changeset viewer.