Sync to HEAD
[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 ..\lib-src
14 copy fns* ..\lib-src
15 mkdir obj
16 mkdir obj\i386
17 mkdir obj\etc
18 copy ..\etc\DOC* obj\etc
19 copy temacs.exe obj\i386
20 obj\i386\temacs -batch -l loadup dump
21 copy obj\i386\emacs.exe .
22
23 goto skipArchTag
24 arch-tag: 0ca3036d-3a1e-47ea-87c6-9c0845253496
25 :skipArchTag