#! sh # this file is sourced on update tryrun "updating debian package lists" apt-get -y update tryrun "updating debian perl packages" apt-get -y install libglib-perl libgtk2-perl libgtk2-ex-podviewer-perl libblitz0-dev imagemagick rm -rf ~/.cpan/Metadata ~/.cpan/sources ~/.cpan/build for module in \ common::sense \ Digest::SHA1 \ URI \ LWP \ Pod::POM \ JSON \ JSON::XS \ YAML::XS \ Safe::Hole \ Guard \ Compress::LZF \ Async::Interrupt \ EV \ EV::Loop::Async \ AnyEvent \ IO::AIO \ AnyEvent::AIO \ BDB \ AnyEvent::BDB \ Coro \ AnyEvent::IRC \ Object::Event \ Convert::Scalar \ Devel::FindRef \ AnyEvent::HTTP \ AnyEvent::MP \ AnyEvent::EditText do tryrun "updating perl module $module" cpan $module done tryrun "updating cvs trees" my_cvs update -AdP arch maps gde server Deliantra ( cd Deliantra || exit 4 tryrun "configuring deliantra module" perl Makefile.PL tryrun "installing deliantra module" make install ) ( cd gde || exit 4 tryrun "configuring deliantra editor" perl Makefile.PL tryrun "installing deliantra editor" make install ) ( cd server || exit 3 tryrun "configuring the server source" ./autogen.sh tryrun "building the server" make tryrun "installing the server" make install ) tryrun "installing the archetypes" archetype-update if grep -q ^worldmap /etc/deliantra-server/settings; then tryrun "replacing old settings file" 'cd /etc/deliantra-server && mv settings settings.old && touch settings' fi sync echo 1 >/etc/update-version sync cat <