~ubuntu-branches/ubuntu/hardy/steam/hardy

« back to all changes in this revision

Viewing changes to install

  • Committer: Bazaar Package Importer
  • Author(s): Alain Schroeder
  • Date: 2006-11-21 16:03:12 UTC
  • mfrom: (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061121160312-nf96y6nihzsyd2uv
Tags: 2.2.31-3
Add patch to prevent inconsistent data after shutdown.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
 
2
 
 
3
# check command line arguments:
 
4
brand=steam
 
5
for tmp_option in $@
 
6
do
 
7
  # Extract options and values (format: option=value):
 
8
  option=${tmp_option%%=*}
 
9
  value=${tmp_option#*=}
 
10
  [ "$option" == "$tmp_option" ] && value=
 
11
  # Check options:
 
12
  [ "$option" == "--with-brand" ] && brand=$value
 
13
done
 
14
 
2
15
./build $*
3
16
chmod u+xr setup
 
17
 
 
18
make install
 
19
make check-install-cert
 
20
 
 
21
if [ -e /etc/rc.status ]; then  # SuSE
 
22
    echo "Installing SuSE startup file: /etc/init.d/$brand"
 
23
    mkdir -p /etc/init.d
 
24
    cp -f distrib/suse/init.d/steam /etc/init.d/$brand
 
25
    [ -e /usr/sbin/rc$brand ] && rm -f /usr/sbin/rc$brand
 
26
    ln -s /etc/init.d/$brand /usr/sbin/rc$brand
 
27
elif [ -e /etc/rc.d/init.d/functions ]; then  # RedHat/Fedora
 
28
    echo "Installing RedHat/Fedora startup file: /etc/init.d/$brand"
 
29
    mkdir -p /etc/init.d
 
30
    cp -f distrib/redhat/init.d/steam /etc/init.d/$brand
 
31
else  # generic
 
32
    echo "Installing generic startup file: /etc/init.d/$brand"
 
33
    mkdir -p /etc/init.d
 
34
    cp -f distrib/generic/init.d/steam /etc/init.d/$brand
 
35
fi
 
36
 
4
37
./setup
5
 
make install
 
38
 
6
39
echo "Installation finished successfully..."