| delorie.com/archives/browse.cgi | search |
| Message-ID: | <007f01c2cceb$142587e0$0100a8c0@acp42g> |
| From: | "Andrew Cottrell" <acottrel AT ihug DOT com DOT au> |
| To: | <djgpp-workers AT delorie DOT com>, "Charles Sandmann" <sandmann AT clio DOT rice DOT edu> |
| References: | <10302042053 DOT AA13981 AT clio DOT rice DOT edu> |
| Subject: | Re: djgpp/manifest fixed; mkdist11.bat/nobins patch |
| Date: | Wed, 5 Feb 2003 18:49:13 +1100 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 6.00.2800.1106 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
| Reply-To: | djgpp-workers AT delorie DOT com |
> We could add another "if not exist" after the first one and jump to > a new label - but it really needs errorlevel checks on everything > if you plan to make it robust. Here is what I use. It catches most errors that I have found so far amd had the errorlevel checking, but it does not include the extra line from Charles. if "%DJGPP%"=="" goto error if exist ..\zips\readme.1st del ..\zips\readme.1st if exist ..\zips\copying.lib.* del ..\zips\copy*.* if exist ..\zips\djdev204.zip del ..\zips\*.zip cp ../readme.1st ../zips cp ../copying* ../zips call mkdist1 djdev204 Development Kit and Runtime if errorlevel = 0 goto base1 goto failure :base1 call mkdist1 djlsr204 Base Library Sources if errorlevel = 0 goto test goto failure :test call mkdist1 djtst204 Test Programs if errorlevel = 0 goto cross goto failure :cross call mkdist1 djcrx204 For Cross-to-DOS Compiling (subset of djdev) if errorlevel = 0 goto time goto failure :time call mkdist1 djtzn204 Extra Timezone Support Files if errorlevel = 0 goto timesrc goto failure :timesrc call mkdist1 djtzs204 Timezone Sources and Utils if errorlevel = 0 goto rename goto failure :rename goto end :failure @echo Program error detected, exiting goto end :error @echo ERROR DJGPP environment not setup :end
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |