From fc80ecccec60013b65662e1b3b19c539d041f953 Mon Sep 17 00:00:00 2001 From: ligc Date: Thu, 18 Dec 2014 11:04:50 +0800 Subject: [PATCH] update bldconserver.pl for RHEL 7.1 ppc64le Former-commit-id: 73185ac9373dfea088ea85ce596f0b985002cc35 --- conserver/bldconserver.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conserver/bldconserver.pl b/conserver/bldconserver.pl index 0889db3..13a9699 100755 --- a/conserver/bldconserver.pl +++ b/conserver/bldconserver.pl @@ -10,6 +10,8 @@ if (grep /Red Hat Enterprise Linux Server release 5\.\d/, @output) { $os = "rh5"; } elsif (grep /Red Hat Enterprise Linux Server release 6\.\d/, @output) { $os = "rh6"; +} elsif (grep /Red Hat Enterprise Linux Server release 7\.\d/, @output) { + $os = "rh7"; } elsif (grep /SUSE Linux Enterprise Server 10/, @output) { $os = "sles10"; } elsif (grep /SUSE Linux Enterprise Server 11/, @output) { @@ -46,7 +48,7 @@ if ( (! -f "$pwd/conserver-8.1.16.tar.gz") my $blddir; if ($os eq "rh5") { $blddir = "/usr/src/redhat"; -} elsif ($os eq "rh6" || $os eq "fedora") { +} elsif ($os eq "rh6" || $os eq "fedora" || $os eq "rh7") { $blddir = "/root/rpmbuild"; } elsif ($os =~ /sles1\d/) { $blddir = "/usr/src/packages";