1 | #!/bin/sh |
1 | #!/bin/sh |
|
|
2 | |
|
|
3 | # 1. build |
|
|
4 | # 2. gendist |
|
|
5 | # 3. ota_publish |
2 | |
6 | |
3 | ############################################################################# |
7 | ############################################################################# |
4 | # copy and install modules |
8 | # copy and install modules |
5 | |
9 | |
6 | if ! [ "$SKIP_INSTALL" ] ; then |
10 | if ! [ "$SKIP_INSTALL" ] ; then |
7 | cpan="Win32::Exe Pod::POM LWP" |
11 | cpan="Win32::Exe Pod::POM LWP PPI" |
8 | cpan="" |
12 | cpan="" |
9 | mods="common-sense Guard JSON-XS AnyEvent EV BDB Coro Compress-LZF IO-AIO Urlader deliantra/Deliantra deliantra/Deliantra-Client" |
13 | mods="common-sense Guard JSON-XS AnyEvent EV BDB Coro Compress-LZF" |
10 | #mods="deliantra/Deliantra-Client" |
14 | mods="$mods IO-AIO AnyEvent-AIO AnyEvent-BDB Getopt::Long Perl-Strip Perl-LibExtractor Urlader" |
|
|
15 | mods="$mods deliantra/Deliantra deliantra/Deliantra-Client" |
11 | |
16 | |
12 | for host in vm osx105; do |
17 | for host in vm osx105; do |
13 | ( |
18 | ( |
14 | cd /root/src |
19 | cd /root/src |
15 | cvsfind $mods |
20 | cvsfind $mods |
… | |
… | |
28 | MAKE="$1"; shift |
33 | MAKE="$1"; shift |
29 | PERL="$1"; shift |
34 | PERL="$1"; shift |
30 | echo "building on platform <$@>" |
35 | echo "building on platform <$@>" |
31 | "$@" ' |
36 | "$@" ' |
32 | cpan '"$cpan"' </dev/null >log 2>&1 || { cat log; exit 68; } |
37 | cpan '"$cpan"' </dev/null >log 2>&1 || { cat log; exit 68; } |
|
|
38 | export EV_EVENTFD=0 |
|
|
39 | export EV_INOTIFY=0 |
|
|
40 | export EV_SIGNALFD=0 |
33 | for mod in '"$mods"'; do |
41 | for mod in '"$mods"'; do |
34 | echo building $mod |
42 | echo building $mod |
35 | cd /root/src/$mod || exit 69 |
43 | cd /root/src/$mod || exit 69 |
36 | rm -rf blib |
44 | rm -rf blib |
37 | '$PERL' Makefile.PL </dev/null >/dev/null 2>&1 |
45 | '$PERL' Makefile.PL </dev/null >/dev/null 2>&1 |