| 1 |
#! sh |
| 2 |
|
| 3 |
# this file is sourced on update |
| 4 |
|
| 5 |
tryrun "updating debian package lists" apt-get -y update |
| 6 |
tryrun "updating debian perl packages" apt-get -y install libglib-perl libgtk2-perl libgtk2-ex-podviewer-perl libblitz0-dev imagemagick |
| 7 |
|
| 8 |
rm -rf ~/.cpan/Metadata ~/.cpan/sources ~/.cpan/build |
| 9 |
|
| 10 |
for module in \ |
| 11 |
common::sense \ |
| 12 |
Digest::SHA1 \ |
| 13 |
URI \ |
| 14 |
LWP \ |
| 15 |
Pod::POM \ |
| 16 |
JSON \ |
| 17 |
JSON::XS \ |
| 18 |
YAML::XS \ |
| 19 |
CBOR::XS \ |
| 20 |
Safe::Hole \ |
| 21 |
Guard \ |
| 22 |
Compress::LZF \ |
| 23 |
Async::Interrupt \ |
| 24 |
EV \ |
| 25 |
EV::Loop::Async \ |
| 26 |
AnyEvent \ |
| 27 |
IO::AIO \ |
| 28 |
AnyEvent::AIO \ |
| 29 |
BDB \ |
| 30 |
AnyEvent::BDB \ |
| 31 |
Coro \ |
| 32 |
AnyEvent::IRC \ |
| 33 |
Object::Event \ |
| 34 |
Convert::Scalar \ |
| 35 |
Devel::FindRef \ |
| 36 |
AnyEvent::HTTP \ |
| 37 |
AnyEvent::MP \ |
| 38 |
AnyEvent::EditText |
| 39 |
do |
| 40 |
tryrun "updating perl module $module" cpan $module |
| 41 |
done |
| 42 |
|
| 43 |
tryrun "updating cvs trees" my_cvs update -AdP arch maps gde server Deliantra |
| 44 |
|
| 45 |
( |
| 46 |
cd Deliantra || exit 4 |
| 47 |
tryrun "configuring deliantra module" perl Makefile.PL |
| 48 |
tryrun "installing deliantra module" make install |
| 49 |
) |
| 50 |
|
| 51 |
( |
| 52 |
cd gde || exit 4 |
| 53 |
tryrun "configuring deliantra editor" perl Makefile.PL |
| 54 |
tryrun "installing deliantra editor" make install |
| 55 |
) |
| 56 |
|
| 57 |
( |
| 58 |
cd server || exit 3 |
| 59 |
|
| 60 |
tryrun "configuring the server source" ./autogen.sh |
| 61 |
tryrun "building the server" make |
| 62 |
tryrun "installing the server" make install |
| 63 |
) |
| 64 |
|
| 65 |
tryrun "installing the archetypes" archetype-update |
| 66 |
|
| 67 |
if grep -q ^worldmap /etc/deliantra-server/settings; then |
| 68 |
tryrun "replacing old settings file" 'cd /etc/deliantra-server && mv settings settings.old && touch settings' |
| 69 |
fi |
| 70 |
|
| 71 |
sync |
| 72 |
echo 1 >/etc/update-version |
| 73 |
sync |
| 74 |
|
| 75 |
cat <<EOF |
| 76 |
|
| 77 |
*** |
| 78 |
*** All done. |
| 79 |
*** |
| 80 |
|
| 81 |
EOF |
| 82 |
|
| 83 |
sleep 10 |
| 84 |
|
| 85 |
exit 0 |