Enrico Forestieri wrote:

> -if test -z "$COMSPEC" && test -z "$ComSpec"; then SEP=':'; else SEP=';';
> fi +# MS-DOS and MS-Windows define $COMSPEC or $ComSpec and use `;' to
> separate
> +# directories in path lists whereas Unix uses `:'.  Make an exception for
> +# Cygwin, where we could have either teTeX (using `:') or MikTeX (using
> `;'). +# Create a variable that holds the right character to be used by
> the scripts. +DOSISH=no
> +case `uname -s` in
> +  CYGWIN*|Cygwin*|cygwin*)
> +    # MikTeX's kpsewhich says "kpathsea emulation version x.x.x", whereas
> +    # teTeX's simply "kpathsea version x.x.x".
> +    KPATHSEA="`kpsewhich --version | sed 's/.*\(emulation\).*/\1/'`"
> +    if test "$KPATHSEA" = "emulation"; then DOSISH=yes; fi ;;

I personally would use

if kpsewhich --version | grep emulation >/dev/null 2>&1; then DOSISH=yes;
fi ;;

instead of the sed construct, it is IMO better to read, but there might be
reason to use sed I don't know. If you give me a log message I put it in.


Georg

Reply via email to