mandriva2010.0.sh 844 Bytes
Newer Older
Łukasz Nowak's avatar
Łukasz Nowak committed
1 2
#!/bin/sh

3 4 5 6 7 8 9 10 11 12 13 14 15
USAGE="""\
Helper for buildout-base installation of ERP5 on Mandriva 2010.
 Usage:
   mandriva2010.sh [-h|-l]

   With no options, attempts to install the dependencies required
   to run the buildout.

 Options:
   -h  shows this message
   -l  lists the required dependencies\
"""
PACKAGE_LIST="""\
Lucas Carvalho's avatar
Lucas Carvalho committed
16
automake
17 18 19 20 21 22 23 24 25
bison
cpio
flex
gcc
gcc-c++
libbzip2-devel
libgdbm-devel
libglib2.0-devel
libjpeg-devel
26
libldap-devel
27
libncurses-devel
Łukasz Nowak's avatar
Łukasz Nowak committed
28
libneon0.27-devel
29 30
libopenssl-devel
libtermcap-devel
31
libsasl2-devel
32 33 34 35
libxml2-devel
libxslt-devel
make
patch
Lucas Carvalho's avatar
Lucas Carvalho committed
36
python-devel
37
rpm
38
rpm-build
39 40 41 42
subversion
subversion-devel
subversion-tools
x11-server-xvfb
43
zip
44
zlib1-devel\
Łukasz Nowak's avatar
Łukasz Nowak committed
45
"""
46 47 48 49 50 51 52 53 54 55
if [ x"$1" == x ]; then
  urpmi $PACKAGE_LIST
elif [ "$1" = "-l" ]; then
  echo "$PACKAGE_LIST"
elif [ "$1" = "-h" ]; then
  echo "$USAGE"
else
  echo "Unknown argument."
  echo "$USAGE"
fi