1 | #!/bin/bash |
1 | #!/bin/bash |
2 | |
2 | |
3 | [ -e Makefile ] && make clean |
3 | [ -e Makefile ] && make clean |
4 | |
4 | |
5 | ( |
5 | if true; then |
6 | cd ../Crossfire || exit 69 |
6 | for mod in AnyEvent EV JSON-XS Deliantra BDB Compress-LZF; do |
7 | [ -e Makefile ] && make clean |
7 | ( |
8 | rsync -avessh --modify-window=1 . vm:/c/Crossfire/. |
8 | cd /root/src/"$mod" |
9 | ) && |
9 | make clean |
|
|
10 | ssh vm mkdir -p /c/"$mod" |
|
|
11 | rsync -avPessh --modify-window=1 . vm:/c/"$mod"/. --del --exclude /pgrab |
|
|
12 | ) & |
|
|
13 | done |
|
|
14 | fi |
|
|
15 | |
|
|
16 | wait |
|
|
17 | |
10 | rsync -avessh --modify-window=1 . vm:/c/CFClient/. --exclude audio --exclude rocketmen_sound_effects && |
18 | rsync -avessh --modify-window=1 . vm:/c/CFClient/. --exclude audio --exclude "*.exe" && |
|
|
19 | #sshpass -p geheim123 ssh -o PreferredAuthentications=password vm ' |
11 | ssh vm ' |
20 | ssh vm ' |
12 | export INCLUDE="c:\\vc\\include;c:\\sdk\\include" |
21 | export INCLUDE="c:\\vc98\\include;c:\\sdk\\include" |
13 | export LIB="c:\\vc\lib;c:\\sdk\\lib" |
22 | export LIB="c:\\vc98\\lib;c:\\sdk\\lib" |
14 | export ACTIVEPERL_CONFIG_DISABLE=1 |
23 | export ACTIVEPERL_CONFIG_DISABLE=1 |
15 | PATH="/c/gtk/bin:/c/perl/bin:/c/vc/bin:$PATH" |
24 | export VCINSTALLDIR=c:\\vc98 |
|
|
25 | export MSVCDir=c:\\vc98 |
|
|
26 | export MSDevDir=c:\\vs6\\common\\msdev98 |
|
|
27 | export PERL_MM_USE_DEFAULT=1 |
|
|
28 | PATH="/c/Perl/bin/:/c/WINNT/system32:/c/WINNT:/c/WINNT/System32/Wbem:/c/gtk2/bin:/c/bdb/bin:/c/sdk/Bin/:/c/sdk/Bin/WinNT/:/c/vc98/bin:/c/vc98/msdev98/bin:/gtk/bin:$PATH" |
16 | |
29 | |
17 | cd /c/Crossfire && |
30 | cd /c/AnyEvent && /c/perl/bin/perl Makefile.PL && nmake install && |
18 | /c/perl/bin/perl Makefile.PL && |
31 | cd /c/EV && /c/perl/bin/perl Makefile.PL && nmake install && |
19 | nmake install && |
32 | cd /c/BDB && /c/perl/bin/perl Makefile.PL && nmake install && |
|
|
33 | cd /c/JSON-XS && /c/perl/bin/perl Makefile.PL && nmake install && |
|
|
34 | cd /c/Deliantra && /c/perl/bin/perl Makefile.PL && nmake install && |
|
|
35 | cd /c/Compress-LZF && /c/perl/bin/perl Makefile.PL && nmake install && |
|
|
36 | |
20 | cd /c/CFClient && |
37 | cd /c/CFClient && |
21 | /c/perl/bin/perl Makefile.PL && |
38 | /c/perl/bin/perl Makefile.PL && |
22 | nmake install && |
39 | nmake install && |
23 | win32/ppwin && |
40 | win32/ppwin && |
24 | cp cfplus.exe /c/temp |
41 | cp deliantra.exe /c/temp |
25 | ' && |
42 | ' && |
26 | rsync -avessh vm:/c/CFClient/cfplus.exe . |
43 | rsync -avessh vm:/c/CFClient/deliantra.exe . |
27 | todata cfplus.exe |
44 | cp deliantra.exe /fs/dosx/todo/. & |
|
|
45 | todata deliantra.exe |
|
|
46 | wait |
28 | |
47 | |