Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.ca
[bpt/emacs.git] / admin / nt / dump.bat
1 @echo off
2 rem Run temacs.exe to recreate the dumped emacs.exe.
3 rem This is only likely to be useful on systems where the prebuilt
4 rem emacs.exe crashes on startup.
5
6 rem First save original emacs.exe if present
7 if exist emacs.exe.orig goto dump
8 echo Saving original emacs.exe as emacs.exe.orig
9 ren emacs.exe emacs.exe.orig
10
11 :dump
12 rem Overwrites emacs.exe if still present
13 mkdir obj
14 mkdir obj\i386
15 mkdir obj\etc
16 copy ..\etc\DOC* obj\etc
17 copy temacs.exe obj\i386
18 obj\i386\temacs -batch -l loadup dump
19 copy obj\i386\emacs.exe .
20