www.delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "David Christensen" <dpchrist AT holgerdanske DOT com> |
To: | "'Shane'" <wolfpack AT inbox DOT com>, <cygwin AT cygwin DOT com> |
Subject: | RE: Checking XCOPY Exit Value in Cygwin Bash |
Date: | Sun, 6 Aug 2006 10:30:08 -0700 |
Message-ID: | <003d01c6b97d$f6e06730$672a8e40@holgerdanske.local> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <74382BAFEAA.000000D2wolfpack@inbox.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
Shane wrote: > I am writing a automated build script for my project that will be run > under cygwin. I will copy my updated source files to the build > directory and if there are updated files, the executables will be > built. To copy the source files, I had to use XCOPY since the > directory structure should be preserved in the destination directory > also. To copy only the updated files, I used the /D switch for XCOPY. > Now since I want to execute the source compile only if files in the > build directory have been updated, I have to use the exit codes of > XCOPY inside the script. There are standard software development tools that solve the problems you are facing -- CVS and Make: http://ximbiot.com/cvs/wiki/index.php?title=Main_Page http://ximbiot.com/cvs/wiki/index.php?title=Main_Page Both are included in Cygwin. In the long run, you'd be better off investing in a basic to intermediate understanding of both rather than hacking together custom scripts to implement a subset of their functionality. David -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |