Combine the Step1/Step2 creation of the Hybrid-CD. Extra stuff can be added to the...
[reactos.git] / reactos / make_hybridcd.cmd
1 :: Script to create a Hybrid-CD (Boot-CD + Live-CD) for demo purposes.
2 :: Only run it from the root "reactos" dir (where you would also call "make").
3 ::
4 :: Written by Colin Finck (2010-03-10)
5 ::
6
7 @echo off
8
9 :: Ensure that
10 :: - the user already built Boot-CDs and Live-CDs
11 :: - put his extra stuff into "hybridcd_extras"
12 :: - added a copy of mkisofs
13 if exist "output-i386\bootcd\." (
14 if exist "output-i386\livecd\." (
15 if exist "hybridcd_extras\." (
16 if exist "mkisofs.exe" (
17 goto NEXT
18 )
19 )
20 )
21 )
22
23 echo Please build regular Boot-CDs and Live-CDs first!
24 echo Also create a directory "hybridcd_extras" and put everything else
25 echo for the CD root into this directory.
26 echo.
27 echo You also need to put a version of "mkisofs.exe" into this
28 echo directory. Get one from e.g. "PE Builder" at http://nu2.nu/.
29 echo Our cdmake doesn't support creating an ISO9660:1999 filesystem, which is
30 echo important for a universally usable disc.
31 goto :EOF
32
33 :: Create directories and copy the basic stuff there
34 :NEXT
35 rd /s /q "hybridcd"
36 mkdir "hybridcd"
37 mkdir "hybridcd\live"
38 mkdir "hybridcd\Profiles"
39
40 xcopy /e "output-i386\bootcd" "hybridcd"
41 xcopy /e "output-i386\livecd\reactos" "hybridcd\live"
42 xcopy /e "output-i386\livecd\Profiles" "hybridcd\Profiles"
43
44 :: Copy our modified "freeldr.ini"
45 copy /y "hybridcd_freeldr.ini" "hybridcd\freeldr.ini"
46
47 :: Copy the extra stuff
48 xcopy /e "hybridcd_extras" "hybridcd"
49
50 :: Create the ISO
51 mkisofs -iso-level 4 -volid "ReactOS-HybridCD" -b "loader/isoboot.bin" -no-emul-boot -boot-load-size 4 -hide "boot.catalog" -o "hybridcd.iso" "hybridcd"