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 Guard common-sense; 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" && |
11 | sshpass -p geheim123 ssh -o PreferredAuthentications=password vm ' |
19 | #sshpass -p geheim123 ssh -o PreferredAuthentications=password vm ' |
12 | export INCLUDE="c:\\vs8\\vc\\include;c:\\sdk\\include" |
20 | ssh vm ' |
13 | export LIB="c:\\vs8\\vc\lib;c:\\vs8\\sdk\\v2.0\\lib;c:\\sdk\\lib" |
21 | . ~/.setenv |
14 | export ACTIVEPERL_CONFIG_DISABLE=1 |
22 | export ACTIVEPERL_CONFIG_DISABLE=1 |
15 | export VCINSTALLDIR=c:\\vs8\\vc |
23 | export PERL_MM_USE_DEFAULT=1 |
16 | export VS80COMNTOOLS=c:\\vs8\\commo7\\tools |
|
|
17 | export VSINSTALLDIR=c:\\vs8 |
|
|
18 | PATH="/c/vs8/Common7/IDE:/c/vs8/VC/BIN:/c/vs8/Common7/Tools:/c/vs8/SDK/v2.0/bin:/c/WINNT/Microsoft.NET/Framework/v2.0.50727:/c/vs8/VC/VCPackages:/c/Perl/bin/:/c/WINNT/system32:/c/WINNT:/c/WINNT/System32/Wbem:/c/gtk2/bin:c:/gtk-win32/bin:/c/sdk/Bin/.:/c/sdk/Bin/WinNT/.:/c/strawberry-perl/mingw/bin:/c/bdb/bin:/c/sdk/Bin/.:/c/sdk/Bin/WinNT/.:/c/vc/bin:c:/gtk/bin:$PATH" |
|
|
19 | |
24 | |
20 | cd /c/Crossfire && |
25 | cd /c/common-sense && /c/perl/bin/perl Makefile.PL && nmake install && |
21 | /c/perl/bin/perl Makefile.PL && |
26 | cd /c/Guard && /c/perl/bin/perl Makefile.PL && nmake install && |
22 | nmake install && |
27 | cd /c/AnyEvent && /c/perl/bin/perl Makefile.PL && nmake install && |
|
|
28 | cd /c/EV && /c/perl/bin/perl Makefile.PL && nmake install && |
|
|
29 | cd /c/BDB && /c/perl/bin/perl Makefile.PL && nmake install && |
|
|
30 | cd /c/JSON-XS && /c/perl/bin/perl Makefile.PL && nmake install && |
|
|
31 | cd /c/Deliantra && /c/perl/bin/perl Makefile.PL && nmake install && |
|
|
32 | cd /c/Compress-LZF && /c/perl/bin/perl Makefile.PL && nmake install && |
|
|
33 | |
23 | cd /c/CFClient && |
34 | cd /c/CFClient && |
24 | /c/perl/bin/perl Makefile.PL && |
35 | /c/perl/bin/perl Makefile.PL && |
25 | nmake install && |
36 | nmake install && |
26 | win32/ppwin && |
37 | win32/ppwin && |
27 | cp cfplus.exe /c/temp |
38 | cp deliantra.exe /c/temp |
28 | ' && |
39 | ' && |
29 | rsync -avessh vm:/c/CFClient/cfplus.exe . |
40 | rsync -avessh vm:/c/CFClient/deliantra.exe . |
30 | todata cfplus.exe |
41 | cp deliantra.exe /fs/dosx/todo/. & |
|
|
42 | todata deliantra.exe |
|
|
43 | wait |
31 | |
44 | |