opensuse.sh 893 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/bin/sh

USAGE="""\
Helper for buildout-base installation of ERP5 on OpenSUSE 11.2
 Usage:
   opensuse.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="""\
automake
bison
cpio
flex
gcc
gcc-c++
gdbm-devel
Lucas Carvalho's avatar
Typo.  
Lucas Carvalho committed
23
glib2-devel
Łukasz Nowak's avatar
Łukasz Nowak committed
24 25 26
groff
libcom_err-devel
libgsasl-devel
27 28 29 30
libjpeg-devel
libldapcpp-devel
libneon-devel
libopenssl-devel
31
librsync
32
libtool
Łukasz Nowak's avatar
Łukasz Nowak committed
33
libxml2-devel
34
libxslt-devel
Łukasz Nowak's avatar
Łukasz Nowak committed
35
libzip-devel
36
make
Łukasz Nowak's avatar
Łukasz Nowak committed
37
ncurses-devel
38 39 40
patch
python-devel
python-setuptools
Łukasz Nowak's avatar
Łukasz Nowak committed
41
readline-devel
42
rpm
43
scons
44 45 46
subversion
subversion-devel
subversion-tools
Łukasz Nowak's avatar
Łukasz Nowak committed
47
termcap
48 49 50 51 52 53 54 55 56 57 58 59 60 61
xorg-x11-server
zip
zlib-devel\
"""
if [ x"$1" == x ]; then
  zypper install $PACKAGE_LIST
elif [ "$1" = "-l" ]; then
  echo "$PACKAGE_LIST"
elif [ "$1" = "-h" ]; then
  echo "$USAGE"
else
  echo "Unknown argument."
  echo "$USAGE"
fi