delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/10/12:05:47

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
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: pathing issues script failure
X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3
Date: Tue, 10 Dec 2002 11:05:29 -0600
Message-ID: <34385CBC5E8E664EB0007814636AB36A677A32@exchange1.dimensions.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Scott Purcell" <spurcell AT vertisinc DOT com>
To: <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id gBAH5kB09325

Hello,
I am writing a simple shell script and I am running into some roadblocks. I am sure it is something I am doing, or the way I have configured the system? Anyway, the problem is in the following script, I have to type in /cygdrive/c, to reach the c drive.

But for some reason this script fails when it has to put the output away. It switches the / unix style slashes back to windows? I am on win2000.
I am trying to get this working, does anyone know what is wrong, or what I should change to get this rolling?

Thanks,
Scott

Here is the script.
#!/bin/sh

pwd=`pwd`
echo $pwd " is pwd"

classfiles=/cygdrive/c

`cp -r ${classfiles}/com ${classfiles}/cvs_tmp`

cd ${classfiles}/cvs_tmp

args=`find . | grep java\$ | tr "\n" " "`

# run javadoc with the -d option, which will put the output in the
# directory this script was run from

echo /cygdrive/c/Program Files/jdk1.3.1_04/bin/javadoc -J-Xmx96m -d $pwd javafil
es ....
/cygdrive/c/Program\ Files/jdk1.3.1_04/bin/javadoc -J-Xmx96m -d $pwd $args

# go back to where we started from
cd $pwd


find . | xargs chmod 777


### here is what happens when I run it, notice the Destination, it is now \cygdrive\c
spurcell AT DSGSTL-PC-1523 /cygdrive/c
$ javadoc.sh
/cygdrive/c  is pwd
/cygdrive/c/Program Files/jdk1.3.1_04/bin/javadoc -J-Xmx96m -d /cygdrive/c javaf
iles ....
javadoc: Destination directory not found \cygdrive\c
1 error

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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