Merge from trunk
[emacs.git] / admin / nt / dump.bat
blobc0e95426ccb2880cc3ee753ebb626b82b0041537
1 @echo off\r
2 rem  Run temacs.exe to recreate the dumped emacs.exe.\r
3 rem  This is only likely to be useful on systems where the prebuilt\r
4 rem  emacs.exe crashes on startup.\r
5 \r
6 rem First save original emacs.exe if present\r
7 if exist emacs.exe.orig goto dump\r
8 echo Saving original emacs.exe as emacs.exe.orig\r
9 ren emacs.exe emacs.exe.orig\r
11 :dump\r
12 rem Overwrites emacs.exe if still present\r
13 mkdir obj\r
14 mkdir obj\i386\r
15 mkdir obj\etc\r
16 copy ..\etc\DOC* obj\etc\r
17 copy temacs.exe obj\i386\r
18 obj\i386\temacs -batch -l loadup dump\r
19 copy obj\i386\emacs.exe .\r
21 goto skipArchTag\r
22    arch-tag: 0ca3036d-3a1e-47ea-87c6-9c0845253496\r
23 :skipArchTag\r