ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/deliantra-vm/update
Revision: 1.6
Committed: Fri Jun 18 17:20:27 2010 UTC (13 years, 11 months ago) by root
Branch: MAIN
Changes since 1.5: +1 -1 lines
Log Message:
no longer need YAML

File Contents

# Content
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
7
8 rm -rf ~/.cpan/Metadata ~/.cpan/sources ~/.cpan/build
9
10 for module in \
11 LWP Pod::POM JSON YAML::XS Safe::Hole URI \
12 common::sense Guard Compress::LZF Async::Interrupt EV EV::Loop::Async AnyEvent IO::AIO AnyEvent::AIO \
13 BDB AnyEvent::BDB Coro JSON::XS AnyEvent::IRC Object::Event Convert::Scalar Devel::FindRef AnyEvent::HTTP \
14 AnyEvent::MP AnyEvent::EditText
15 do
16 tryrun "updating perl module $module" cpan $module
17 done
18
19 tryrun "updating cvs trees" my_cvs update -AdP arch maps gde server Deliantra
20
21 (
22 cd Deliantra || exit 4
23 tryrun "configuring deliantra module" perl Makefile.PL
24 tryrun "installing deliantra module" make install
25 )
26
27 (
28 cd gde || exit 4
29 tryrun "configuring deliantra editor" perl Makefile.PL
30 tryrun "installing deliantra editor" make install
31 )
32
33 (
34 cd server || exit 3
35
36 tryrun "configuring the server source" ./autogen.sh
37 tryrun "building the server" make
38 tryrun "installing the server" make install
39 )
40
41 tryrun "installing the archetypes" archetype-update
42
43 if grep -q ^worldmap /etc/deliantra-server/settings; then
44 tryrun "replaying old settings file" 'cd /etc/deliantra-server && mv settings settings.old && touch settings'
45 fi
46
47 sync
48 echo 1 >/etc/update-version
49 sync
50
51 cat <<EOF
52
53 ***
54 *** All done.
55 ***
56
57 EOF
58
59 sleep 10
60
61 exit 0