ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/deliantra-vm/update
Revision: 1.8
Committed: Sun May 15 21:04:53 2011 UTC (13 years ago) by root
Branch: MAIN
Changes since 1.7: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.2 #! sh
2    
3 root 1.3 # this file is sourced on update
4 root 1.2
5 root 1.3 tryrun "updating debian package lists" apt-get -y update
6 root 1.8 tryrun "updating debian perl packages" apt-get -y install libglib-perl libgtk2-perl libgtk2-ex-podviewer-perl libblitz0-dev imagemagick
7 root 1.3
8     rm -rf ~/.cpan/Metadata ~/.cpan/sources ~/.cpan/build
9    
10     for module in \
11 root 1.6 LWP Pod::POM JSON YAML::XS Safe::Hole URI \
12 root 1.3 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 root 1.5 if grep -q ^worldmap /etc/deliantra-server/settings; then
44 root 1.7 tryrun "replacing old settings file" 'cd /etc/deliantra-server && mv settings settings.old && touch settings'
45 root 1.5 fi
46    
47 root 1.4 sync
48     echo 1 >/etc/update-version
49     sync
50    
51 root 1.3 cat <<EOF
52    
53     ***
54     *** All done.
55     ***
56    
57     EOF
58    
59     sleep 10
60    
61     exit 0