[LON-CAPA-cvs] cvs: doc /install/linux install.pl

raeburn raeburn at source.lon-capa.org
Sun Jan 6 18:04:07 EST 2013


raeburn		Sun Jan  6 23:04:07 2013 EDT

  Modified files:              
    /doc/install/linux	install.pl 
  Log:
  - Support for Fedora 18.
    /etc/sysconfig/i18n deprecated.
  
  
Index: doc/install/linux/install.pl
diff -u doc/install/linux/install.pl:1.23 doc/install/linux/install.pl:1.24
--- doc/install/linux/install.pl:1.23	Tue Oct 25 02:03:16 2011
+++ doc/install/linux/install.pl	Sun Jan  6 23:04:07 2013
@@ -72,7 +72,7 @@
           &mt('Stopping execution.')."\n";
     exit;
 } else {
-    print LOG '$Id: install.pl,v 1.23 2011/10/25 02:03:16 raeburn Exp $'."\n";
+    print LOG '$Id: install.pl,v 1.24 2013/01/06 23:04:07 raeburn Exp $'."\n";
 }
 
 #
@@ -320,6 +320,16 @@
                       '/etc/sysconfig/language');
         }
         $langvar = 'RC_LANG';
+    } elsif ($distro =~ /^fedora(\d+)/) {
+        if ($1 >= 18) {
+            if (!open($fh,"</etc/locale.conf")) {
+                print &mt('Failed to open: [_1], default locale not checked.',
+                          '/etc/locale.conf');
+            }
+        } elsif (!open($fh,"</etc/sysconfig/i18n")) {
+            print &mt('Failed to open: [_1], default locale not checked.',
+                      '/etc/sysconfig/i18n');
+        }
     } else {
         if (!open($fh,"</etc/sysconfig/i18n")) {
             print &mt('Failed to open: [_1], default locale not checked.',




More information about the LON-CAPA-cvs mailing list