source: gpfs_3.1_ker2.6.20/lpp/mmfs/src/gpfs_preins.sh @ 195

Last change on this file since 195 was 16, checked in by rock, 17 years ago
  • Property svn:executable set to *
File size: 877 bytes
Line 
1#!/bin/bash
2
3apt-get install -y ksh gcc-3.3 g++-3.3 cpp-3.3 g77-3.4
4
5cd /usr/bin
6echo "linking the compiler link"
7ln -sf gcc-3.3 gcc
8ln -sf g++-3.3 g++
9ln -sf cpp-3.3 cpp
10ln -sf g77-3.4 g77
11
12if [ -f /bin/sort ]; then
13  echo "checking sort ..ok";
14else
15  echo " linking /bin/sort"
16  ln -sf /usr/bin/sort /bin/sort
17fi
18
19if [ -f /bin/awk ]; then
20  echo "checking awk .. ok";
21else
22  echo "linking /bin/awk"
23  ln -sf /usr/bin/awk /bin/awk
24fi
25
26if [ ! -f "/usr/src/linux-headers-2.6.20-15-generic/include/linux/config.h" ]; then
27  echo "copy the config.h"
28        cp /usr/lpp/mmfs/src/config/config.h /usr/src/linux-headers-2.6.20-15-generic/include/linux/
29
30fi
31
32#declare -x SHARKCLONEROOT="/usr/lpp/mmfs/src"
33#echo $SHARKCLONEROOT;
34
35echo "please type the three instructions in order :"
36echo "\" export SHARKCLONEROOT=\"/usr/lpp/mmfs/src\" "
37echo "\" make \" "
38echo "\" make InstallImages \""
39
Note: See TracBrowser for help on using the repository browser.