ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/deliantra-vm/update
Revision: 1.4
Committed: Sun Jun 6 01:12:12 2010 UTC (14 years ago) by root
Branch: MAIN
Changes since 1.3: +4 -0 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     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 YAML 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 root 1.4 sync
44     echo 1 >/etc/update-version
45     sync
46    
47 root 1.3 cat <<EOF
48    
49     ***
50     *** All done.
51     ***
52    
53     EOF
54    
55     sleep 10
56    
57     exit 0