1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh
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="""\
bison
cpio
flex
gcc
gcc-c++
libbzip2-devel
libgdbm-devel
libglib2.0-devel
libjpeg-devel
libncurses-devel
libneon-devel
libopenssl-devel
libtermcap-devel
libxml2-devel
libxslt-devel
make
patch
rpm
subversion
subversion-devel
subversion-tools
x11-server-xvfb
zlib1-devel\
"""
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