@echo off\r
rem ----------------------------------------------------------------------\r
rem Configuration script for MSDOS\r
-rem Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002, 2003\r
-rem 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,\r
-rem Inc.\r
+rem Copyright (C) 1994-1999, 2001-2012 Free Software Foundation, Inc.\r
\r
rem This file is part of GNU Emacs.\r
\r
\r
rem Create "config.h"\r
rm -f config.h2 config.tmp\r
-sed -e '' ../autogen/config.in > config.tmp\r
+if exist config.in sed -e '' config.in > config.tmp\r
+if exist ..\autogen\config.in sed -e '' ../autogen/config.in > config.tmp\r
if "%X11%" == "" goto src4\r
-sed -f ../msdos/sed2x.inp < ..\autogen\config.in > config.tmp\r
+if exist config.in sed -f ../msdos/sed2x.inp < config.in > config.tmp\r
+if exist ..\autogen\config.in sed -f ../msdos/sed2x.inp < ..\autogen\config.in > config.tmp\r
:src4\r
sed -f ../msdos/sed2v2.inp <config.tmp >config.h2\r
Rem See if DECL_ALIGN can be supported with this GCC\r
If Exist sys_stat.in.h update sys_stat.in.h sys_stat.in-h\r
If Exist time.in.h update time.in.h time.in-h\r
If Exist unistd.in.h update unistd.in.h unistd.in-h\r
-sed -f ../msdos/sedlibcf.inp < ..\autogen\Makefile.in > makefile.tmp\r
+If Exist Makefile.in sed -f ../msdos/sedlibcf.inp < Makefile.in > makefile.tmp\r
+If Exist ..\autogen\Makefile.in sed -f ../msdos/sedlibcf.inp < ..\autogen\Makefile.in > makefile.tmp\r
sed -f ../msdos/sedlibmk.inp < makefile.tmp > Makefile\r
rm -f makefile.tmp\r
Rem Create .Po files for new files in lib/\r