delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/07/21/05:45:03

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type; q=dns; s=default; b=SIGJdJaUkDQwwmmMYUD5PDnhUAnEW
FEO1ys86Wd84x/R7hrXCmU+omcKeTpkefA26dv9r4xDgUemFLXlMPzOMPm+sFdNe
H3942qbUEdA3AnhBcv1AkVjfcEDJqdVFmMUOKzdj82EvXFZHiz7k3dSDIDYbAtUO
PiZCRnCypok82A=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type; s=default; bh=chjSKskQ2nLUaIgXgt5p6/mtYPM=; b=tyB
vImojkAGyQg7pgFXf4N93CoOk8pECfOX0SVYSJ6DR+myDfNyWf7ryJtErS3xVw4c
DwcFELn8qxIb6qJrrVxaclwVsj2ONSMelAsq2dJvmv7W+mY7PWMsj1KVoz8ZRu1r
LErGkOnlN9CaOaGsbjuOwgOCTvWsd0F25jOnOGx4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: smtp.uni-bremen.de
Message-ID: <53CCE0FB.4040401@uni-bremen.de>
Date: Mon, 21 Jul 2014 11:44:27 +0200
From: =?ISO-8859-1?Q?G=F6k=E7e_Aydos?= <goekce AT uni-bremen DOT de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: cygpath does not work properly in Makefile

--------------050606020501060301010506
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

I want to convert absolute Unix paths to Windows paths using cygpath in 
a Makefile:

FILES = lib1 ./relative.vhd \
         lib2 /cygdrive/c/Windows/absolute.vhd

convert_absolute_paths_to_windows_paths:
	@echo 1: $(patsubst /%,$(shell cygpath -m /%),$(FILES))
	@echo 2: $(shell cygpath -m $(FILES))

The output is:
1: lib1 ./relative.vhd lib2 C:/cygwin64/cygdrive/c/Windows/absolute.vhd
2: lib1 relative.vhd lib2 C:/Windows/absolute.vhd

The first line does not work properly (path prefixed with 
cygwin64/cygdrive), but the second one works. What could be the reason 
of this behavior?

Kind Regards,
Gökçe

--------------050606020501060301010506
Content-Type: text/x-makefile;
 name="cygpath_test.mk"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="cygpath_test.mk"

FILES = lib1 ./relative.vhd \
        lib2 /cygdrive/c/Windows/absolute.vhd

convert_absolute_paths_to_windows_paths:
	@echo 1: $(patsubst /%,$(shell cygpath -m /%),$(FILES))
	@echo 2: $(shell cygpath -m $(FILES))


--------------050606020501060301010506
Content-Type: text/plain; charset=us-ascii

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

- Raw text -


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