X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/02650b7f0e3ef470a949768bdb907183da4b3beb..5320fffdd88676a57c42427f3db06d36d10d5a8c:/djgpp/djunpack.bat diff --git a/djgpp/djunpack.bat b/djgpp/djunpack.bat index bc02fc9e..b4de3acc 100644 --- a/djgpp/djunpack.bat +++ b/djgpp/djunpack.bat @@ -7,12 +7,12 @@ Rem This batch file unpacks the Bison distribution while simultaneously Rem renaming some of the files whose names are invalid on DOS or conflict Rem with other file names after truncation to DOS 8+3 namespace. Rem -Rem Copyright (C) 2005 Free Software Foundation, Inc. +Rem Copyright (C) 2005-2012 Free Software Foundation, Inc. Rem -Rem This program is free software; you can redistribute it and/or modify +Rem This program is free software: you can redistribute it and/or modify Rem it under the terms of the GNU General Public License as published by -Rem the Free Software Foundation; either version 2, or (at your option) -Rem any later version. +Rem the Free Software Foundation, either version 3 of the License, or +Rem (at your option) any later version. Rem Rem This program is distributed in the hope that it will be useful, Rem but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -20,25 +20,25 @@ Rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Rem GNU General Public License for more details. Rem Rem You should have received a copy of the GNU General Public License -Rem along with this program; if not, write to the Free Software Foundation, -Rem Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +Rem along with this program. If not, see . Rem Rem Rem Invoke like this: Rem -Rem djunpack bison-XYZ.tar +Rem djunpack bison-XYZ.tar.gz +Rem or +Rem djunpack bison-XYZ.tar.bz2 Rem Rem where XYZ is the version number. If the argument includes leading Rem directories, it MUST use backslashes, not forward slashes. Rem -Rem The following 2 lines need to be changed with each new Bison release, to -Rem be identical to the name of the top-level directory where the Bison -Rem distribution unpacks itself. + set ENVIRONMENT_SIZE_TEST_STRING=ENVIRONMENT_SIZE_TEST_STRING if "%ENVIRONMENT_SIZE_TEST_STRING%"=="ENVIRONMENT_SIZE_TEST_STRING" GoTo EnvOk Rem If their environment space is too small, re-exec with a larger one command.com /e:4096 /c %0 %1 GoTo End + :EnvOk set ENVIRONMENT_SIZE_TEST_STRING= if "%1" == "" GoTo NoArgument @@ -68,6 +68,7 @@ Rem unpack the source distribution djtar -x -n fnchange.lst %1 del fnchange.lst GoTo End + :NoSed del junk.tmp echo FAIL: Sed is not available.