delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/20/15:52:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20031120205135.91083.qmail@web41101.mail.yahoo.com>
Date: Thu, 20 Nov 2003 12:51:35 -0800 (PST)
From: Nev Bis <nevinebishay AT yahoo DOT com>
Subject: Re: ghostscript on Windows and cygwin path style
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

Yes, it does help.

Thank you very much, Igor, for taking the time and the
effort to solve the problem that quickly and for
providing the solution complete and concrete.

Nevine


----- Original Message ----- 
From: "Igor Pechtchanski" <pechtcha AT cs DOT nyu DOT edu>
To: "Nev Bis" <nevinebishay AT yahoo DOT com>
Cc: <cygwin AT cygwin DOT com>
Sent: Thursday, November 20, 2003 3:35 PM
Subject: Re: ghostscript on Windows and cygwin path
style


> Nevine,
> 
> Ah, that explains it.  The script I suggested
earlier will look at the
> whole parameter.  If you want to transform parts of
parameters, you'd have
> to do something a bit more sophisticated, like
> 
> #!/bin/sh
> PARAMS=""
> for i in "$@"; do
>   case "$i" in
>     -*=/*) i="`echo "$i" | \
>                sed 'h;s,^[^=]*=\(/.*\)$,cygpath -w
-- "\1",e;x;\
>                     s,=.*$,=,;G;s,\n,,'`" ;;
>     -*) ;;
>     */*) i="`cygpath -w -- "$i"`" ;;
>     *) ;;
>   esac
>   PARAMS="$PARAMS '$i'"
> done
> eval "set -- $PARAMS"
> gswin32c "$@"
> 
> The above seems to work correctly.  Hope this helps,
> Igor
> 
> On Thu, 20 Nov 2003, Nev Bis wrote:
> 
> > Yes, It does. I got the echo
> >
> > Before I sent the last reply, I tried invoking gs
from
> > cygwin's command prompt with the switch
> > -sOutputFile=/tmp/somefile.pcx
> >
> > and got the same error.
> >
> > Thanks,
> > Nevine
> >
> > --- Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> wrote:
> > > Nev,
> > >
> > > Please make sure your mailer respects Reply-To:.
> > >
> > > Does your gs script get invoked by xfig?  Try
putting an "echo
> > > 'gs...'" in the beginning of your script and see
if it shows up in the
> > > output.
> > >       Igor
> > >
> > > On Thu, 20 Nov 2003, Nev Bis wrote:
> > >
> > > > Thank you very much for your help and prompt
response.
> > > >
> > > > Now gs responds correctly to this command from
> > > > cygwin's command prompt:
> > > >
> > > > gs /c/somefile.ps
> > > >
> > > > But the problem is that xfig specifies the
output file
> > > > to be /tmp/somefile.pix.
> > > > gs tries to look for a \tmp directory and does
not
> > > > realize that this is /c/cygwin/tmp, so I get
the
> > > > following error
> > > >
> > > > AFPL Ghostscript 8.11: **** Could not open the
file \tmp\somefile.pcx
> > > > Error: /invalidfileaccess in --.outputpage--
> > > >
> > > > Thanks,
> > > > Nevine
> > > >
> > > > ----- Original Message -----
> > > > From: "Igor Pechtchanski"
<pechtcha AT cs DOT nyu DOT edu>
> > > > To: "Nev Bis" <nevinebishay AT yahoo DOT com>
> > > > Cc: <cygwin AT cygwin DOT com>
> > > > Sent: Thursday, November 20, 2003 12:58 PM
> > > > Subject: Re: ghostscript on Windows and cygwin
path style
> > > >
> > > >
> > > > > On Thu, 20 Nov 2003, Nev Bis wrote:
> > > > >
> > > > > > I have cygwin version 1.32 running on
Windows XP Pro.
> > > > >                         ^^^^
> > > > > FYI, there is no such version.  Your
cygcheck.out shows version 1.3.22.
> > > > > The latest is 1.5.5.  I'd recommend
upgrading.
> > > > >
> > > > > > I have ghostscript 8.11 installed in
> > > > > > C:\gs\gs8.11\bin. Under this same
directory, I have a
> > > > > > file called "gs", containing this line:
> > > > > >
> > > > > > gswin32c $*
> > > > > >
> > > > > > I also have XFree86 installed and xfig
3.2.4
> > > > > >
> > > > > > Xfig has a problem invoking gs to convert
a eps file into pcx. The
> > > > > > problem appears to be that gs does not
recognize the path style. In
> > > > > > fact when I invoke gs from the bash shell
with a file under the
> > > > > > working directory, it works fine. But when
I call it this way
> > > > > >
> > > > > > gs /c/directory/somefile.ps
> > > > > >
> > > > > > I get this error from ghostscript
> > > > > >
> > > > > > /undefinedfilename in (
/c/directory/somefile.ps)
> > > > > >
> > > > > > What should I do?
> > > > > >
> > > > > > Thanks,
> > > > > > Nevine
> > > > >
> > > > > Try changing your "gs" file to
> > > > >
> > > > > #!/bin/sh
> > > > > PARAMS=""
> > > > > for i in "$@"; do
> > > > >   PARAMS="$PARAMS '`cygpath -w -- "$i"`'"
> > > > > done
> > > > > eval "set -- $PARAMS"
> > > > > gswin32c "$@"
> > > > >
> > > > > and see if it helps.
> > > > > Igor
> 
> -- 
> http://cs.nyu.edu/~pechtcha/
>       |\      _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
> ZZZzz /,`.-'`'    -.  ;-;;,_ igor AT watson DOT ibm DOT com
>      |,4-  ) )-,_. ,\ (  `'-' Igor Pechtchanski,
Ph.D.
>     '---''(_/--'  `-'\_) fL a.k.a
JaguaR-R-R-r-r-r-.-.-.  Meow!
> 
> "I have since come to realize that being between
your mentor and his route
> to the bathroom is a major career booster."  --
Patrick Naughton

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019