Changeset 6 for trunk/www/emulator.php
- Timestamp:
- Jun 10, 2009, 4:57:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/emulator.php
r5 r6 23 23 function Add() 24 24 { 25 $this->AddTask('Vytovření nového emulátoru', array( 26 'ln -s wowclient/'.$this->Emulator['ClientVersion']['Version'].'/maps emu/mangos/'.$this->Emulator['Revision'].'/mangos/maps', 27 'ln -s wowclient/'.$this->Emulator['ClientVersion']['Version'].'/dbc emu/mangos/'.$this->Emulator['Revision'].'/mangos/dbc', 28 )); 25 $EmulatorDir = '../emulator/'.$this->Id.'/'; 26 if(!file_exists($EmulatorDir)) mkdir($EmulatorDir, 0777, true); 27 28 //$this->AddTask('Vytvoření nového emulátoru', array( 29 // 'ln -s wowclient/'.$this->Emulator['ClientVersion']['Version'].'/maps emulator/'.$this->Emulator['Id'].'/mangos/maps', 30 // 'ln -s wowclient/'.$this->Emulator['ClientVersion']['Version'].'/dbc emulator/'.$this->Emulator['Id'].'/mangos/dbc', 31 //)); 32 $this->Download(); 33 $this->Compile(); 29 34 } 30 35 … … 35 40 function Download() 36 41 { 42 global $Config; 43 44 $this->AddTask('Stažení emulátoru', array( 45 'cd '.$Config['BaseDir'].'emulator/'.$this->Id.'/', 46 'git clone git://github.com/mangos/mangos.git source', 47 'cd source', 48 'git checkout '.$this->Emulator['CommitHash'], 49 'mkdir src/bindings/ScriptDev2', 50 'svn checkout -r '.$this->Emulator['ScriptDev2Revision'].' https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2/ src/bindings/ScriptDev2', 51 'git apply src/bindings/ScriptDev2/patches/'.$this->Emulator['ScriptDev2PatchFileName'], 52 )); 37 53 } 38 54 39 55 function Compile() 40 56 { 57 global $Config; 58 59 $this->AddTask('Překlad emulátoru', array( 60 'cd '.$Config['BaseDir'].'emulator/'.$this->Id.'/source', 61 'autoreconf -ifv', 62 'mkdir objdir', 63 'cd objdir', 64 '../configure --prefix='.$Config['BaseDir'].'emulator/'.$this->Id.'/ --enable-cli --enable-ra', 65 'make', 66 'make install', 67 )); 41 68 } 42 69 }
Note:
See TracChangeset
for help on using the changeset viewer.