Add a little more to the svn_rangelist_intersect test to test the
[svn.git] / packages / rpm / redhat-8+ / find-osrel
blobb229fd566736950ca29c7c0ed1002d76bc936ea9
1 #!/bin/sh
2 if [ -f /etc/aurora-release ]; then
3 case `rpm -q fedora-release` in
4 fedora-release-2.0*) echo al2;;
5 *) echo Unknown;;
6 esac
7 elif [ -f /etc/fedora-release ]; then
8 case `rpm -q fedora-release` in
9 fedora-release-1*) echo fc1;;
10 *) echo Unknown;;
11 esac
12 elif [ -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
18 elif [ -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
37 exit 0