source: valtobtest/subversion-1.6.2/packages/rpm/rhel-5/find-osrel @ 3

Last change on this file since 3 was 3, checked in by valtob, 15 years ago

subversion source 1.6.2 as test

  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/bin/sh
2if [ -f /etc/aurora-release ]; then
3  case `rpm -q fedora-release` in
4    fedora-release-2.0*) echo al2;;
5    *) echo Unknown;;
6  esac
7elif [ -f /etc/fedora-release ]; then
8   case `rpm -q fedora-release` in
9      fedora-release-1*) echo fc1;;
10      *) echo Unknown;;
11   esac
12elif [ -f /etc/whitebox-release ]; then
13   case `rpm -q whitebox-release` in
14     whitebox-release-3*) echo rhel3;;
15     whitebox-release-4*) echo rhel4;;
16     *) echo Unknown;;
17   esac
18elif [ -f /etc/redhat-release ]; then
19   if rpm -q centos-release > /dev/null; then
20     case `rpm -q centos-release` in
21       centos-release-3*) echo rhel3;;
22       centos-release-4*) echo rhel4;;
23       centos-release-5*) echo rhel5;;
24       *) echo Unknown;;
25     esac
26   else
27     case `rpm -q redhat-release` in
28       redhat-release-4*) echo rhel4;;
29       redhat-release-5*) echo rhel5;;
30       redhat-release-7*) echo rh7x;;
31       redhat-release-8*) echo rh80;;
32       redhat-release-9-*) echo rh90;;
33       *) echo Unknown;;
34     esac
35   fi
36fi
37exit 0
Note: See TracBrowser for help on using the repository browser.