[LON-CAPA-cvs] cvs: loncom /build distprobe
raeburn
lon-capa-cvs@mail.lon-capa.org
Thu, 28 Sep 2006 22:58:05 -0000
raeburn Thu Sep 28 18:58:05 2006 EDT
Modified files:
/loncom/build distprobe
Log:
Case changed in realease name from SLES9 to SLES10 and SuSE 9 to SuSE 10. Eliminate the case sensitivity so distprobe works in both cases.
Index: loncom/build/distprobe
diff -u loncom/build/distprobe:1.9 loncom/build/distprobe:1.10
--- loncom/build/distprobe:1.9 Thu Aug 24 23:00:28 2006
+++ loncom/build/distprobe Thu Sep 28 18:58:03 2006
@@ -2,7 +2,7 @@
#
# The LearningOnline Network with CAPA
#
-# $Id: distprobe,v 1.9 2006/08/25 03:00:28 albertel Exp $
+# $Id: distprobe,v 1.10 2006/09/28 22:58:03 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -68,9 +68,9 @@
my $versionstring=<IN>;
chomp($versionstring);
close(IN);
- if ($versionstring =~ /^SUSE LINUX Enterprise Server ([\d\.]+) /) {
+ if ($versionstring =~ /^SUSE LINUX Enterprise Server ([\d\.]+) /i) {
$dist='sles'.$1;
- } elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /) {
+ } elsif ($versionstring =~ /^SuSE Linux ([\d\.]+) /i) {
$dist = 'suse'.$1;
} else {
warn('Unable to interpret /etc/SuSE-release '.