A small script to get and install gnome



Hi!

  Here is  a small shell  script, which can be  used to get  and compile
(and install)  the latest CVS  versions. Maybe it  can help you,  and if
you have suggestions to enhancing, please write me.

  Usage:
  - ./makegnome  &  :  gets  and  compile  and  install  the  predefined
  packages
  - ./makegnome package1 package2  ... & : gets and  compile and install
  the specified packages

  Files, Dirs:
  - The install dir is /opt/gnome
  - The source dir is /opt/gnome/src
  - The  log.makegnome   is  written   when  one  package   is  compiled
  successfully or the compilation is failed
  - out.* files are the outputs of the compilations ...

The script:

--------------------------- 8< -----------------------

#!/bin/bash
export CVSROOT=":pserver:anonymous@anoncvs.gnome.org:/cvs/gnome"
export ACLOCAL_FLAGS="-I /opt/share/aclocal"
FS="glib gtk+  gtk-engines imlib fnlib stringlist  libPropList audiofile
esound   ORBit  gnome-libs   gnome-xml  gnome-objc   libgtop  gnome-core
control-center e  Eterm gnome-guile gnome-admin  gnome-media gnome-games
gnome-network  gnome-utils  gnome-linuxconf   ee  balsa  glade  libglade
genius   gtkicq   achtung  gedit   ggv   gnumeric   gwp  mc   gimp   gdm
gimp-plugins-unstable gnome-http gnome-gfdisk grpm gtop libgtop-apps"
DEF_LDFLAGS=""
DEF_CFLAGS=""
DIR=`pwd`
[ ! -z "$1" ] && FS="$@"
for i in $FS
do
  export CFLAGS="$DEF_CFLAGS"
  export LDFLAGS="$DEF_LDFLAGS"
  OK="Error"
  CVS_CMD="co"
  CVS_FLAGS=""
  CONF_FLAGS=""
  [ "$i" = "ORBit" ] && CVS_FLAGS="$CVS_FLAGS -r FOR_PANEL"
  [ "$i" = "gnome-core" ] && CVS_FLAGS="$CVS_FLAGS -r GNOME_STABLE"
  [ "$i" = "gnome-libs" ] && CVS_FLAGS="$CVS_FLAGS -r GNOME_STABLE"
  [ "$i" = "e" ] && export LDFLAGS="$LDFLAGS -L/opt/freetype/lib"
  [ "$i" = "e" ] && export CFLAGS="$CFLAGS -I/opt/freetype/include"
  [ "$i" = "glib" ] && CONF_FLAGS="$CONF_FLAGS --enable-threads=no"
  [ -d "$i/CVS" ] && CVS_CMD="update -d -R"
  {
    {
      echo "Cvs: $CVS_CMD $CVS_FLAGS"
      cvs -z3 $CVS_CMD  $CVS_FLAGS $i || cvs -z3  $CVS_CMD $CVS_FLAGS $i
      || \
      {
        echo "Removing all data from $i" && rm -rf -- $i && \
        { cvs -z3 co $CVS_FLAGS $i || cvs -z3 co $CVS_FLAGS $i }
      }
    } && \
    cd $i && ( if [ -f config.cache ]; then rm config.cache; fi ) && \
    {
      ./autogen.sh $CONF_FLAGS --prefix=/opt/gnome || \
      ./configure $CONF_FLAGS --prefix=/opt/gnome
    } && make && make install && ldconfig && OK="OK"
    echo "`date`: $i: $OK" >>/opt/gnome/src/log.makegnome
    cd $DIR
  } >&/opt/gnome/src/out.$i
done

--------------------------- 8< -----------------------

Bye,

dLux
--
                        mailto:dlux@rulez.org
      mailto:dlux@aramszu.net



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]