Platform

The main Radix cross Linux repository contains build scripts of the GNU/Linux distribution.

988 Commits   6 Branches   3 Tags   |
Index: radix-1.8/base/radix-system/etc/rc.d/rc.M.in
===================================================================
--- radix-1.8/base/radix-system/etc/rc.d/rc.M.in	(revision 987)
+++ radix-1.8/base/radix-system/etc/rc.d/rc.M.in	(revision 988)
@@ -100,50 +100,74 @@
 
 if [ -d /usr/share/fonts/100dpi ] ; then
   if [ ! -r /usr/share/fonts/100dpi/fonts.dir -o ! -r /usr/share/fonts/100dpi/fonts.scale ] ; then
-    echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/100dpi directory"
-    ( cd /usr/share/fonts/100dpi ; mkfontscale . ; mkfontdir . )
+    if [ -x /usr/bin/mkfontscale -a -x /usr/bin/mkfontdir ] ; then
+      echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/100dpi directory"
+      ( cd /usr/share/fonts/100dpi ; /usr/bin/mkfontscale . ; /usr/bin/mkfontdir . )
+    fi
   fi
 fi
 if [ -d /usr/share/fonts/75dpi ] ; then
   if [ ! -r /usr/share/fonts/75dpi/fonts.dir -o ! -r /usr/share/fonts/75dpi/fonts.scale ] ; then
-    echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/75dpi directory"
-    ( cd /usr/share/fonts/75dpi ; mkfontscale . ; mkfontdir . )
+    if [ -x /usr/bin/mkfontscale -a -x /usr/bin/mkfontdir ] ; then
+      echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/75dpi directory"
+      ( cd /usr/share/fonts/75dpi ; /usr/bin/mkfontscale . ; /usr/bin/mkfontdir . )
+    fi
   fi
 fi
 if [ -d /usr/share/fonts/OTF ] ; then
   if [ ! -r /usr/share/fonts/OTF/fonts.dir -o ! -r /usr/share/fonts/OTF/fonts.scale ] ; then
-    echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/OTF directory"
-    ( cd /usr/share/fonts/OTF ; mkfontscale . ; mkfontdir . )
+    if [ -x /usr/bin/mkfontscale -a -x /usr/bin/mkfontdir ] ; then
+      echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/OTF directory"
+      ( cd /usr/share/fonts/OTF ; /usr/bin/mkfontscale . ; /usr/bin/mkfontdir . )
+    fi
   fi
 fi
 if [ -d /usr/share/fonts/Speedo ] ; then
   if [ ! -r /usr/share/fonts/Speedo/fonts.dir -o ! -r /usr/share/fonts/Speedo/fonts.scale ] ; then
-    echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/Speedo directory"
-    ( cd /usr/share/fonts/Speedo ; mkfontscale . ; mkfontdir . )
+    if [ -x /usr/bin/mkfontscale -a -x /usr/bin/mkfontdir ] ; then
+      echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/Speedo directory"
+      ( cd /usr/share/fonts/Speedo ; /usr/bin/mkfontscale . ; /usr/bin/mkfontdir . )
+    fi
   fi
 fi
 if [ -d /usr/share/fonts/TTF ] ; then
   if [ ! -r /usr/share/fonts/TTF/fonts.dir -o ! -r /usr/share/fonts/TTF/fonts.scale ] ; then
-    echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/TTF directory"
-    ( cd /usr/share/fonts/TTF ; mkfontscale . ; mkfontdir . )
+    if [ -x /usr/bin/mkfontscale -a -x /usr/bin/mkfontdir ] ; then
+      echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/TTF directory"
+      ( cd /usr/share/fonts/TTF ; /usr/bin/mkfontscale . ; /usr/bin/mkfontdir . )
+    fi
   fi
 fi
 if [ -d /usr/share/fonts/Type1 ] ; then
   if [ ! -r /usr/share/fonts/Type1/fonts.dir -o ! -r /usr/share/fonts/Type1/fonts.scale ] ; then
-    echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/Type1 directory"
-    ( cd /usr/share/fonts/Type1 ; mkfontscale . ; mkfontdir . )
+    if [ -x /usr/bin/mkfontscale -a -x /usr/bin/mkfontdir ] ; then
+      echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/Type1 directory"
+      ( cd /usr/share/fonts/Type1 ; /usr/bin/mkfontscale . ; /usr/bin/mkfontdir . )
+    fi
   fi
 fi
 if [ -d /usr/share/fonts/cyrillic ] ; then
   if [ ! -r /usr/share/fonts/cyrillic/fonts.dir -o ! -r /usr/share/fonts/cyrillic/fonts.scale ] ; then
-    echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/cyrillic directory"
-    ( cd /usr/share/fonts/cyrillic ; mkfontscale . ; mkfontdir . )
+    if [ -x /usr/bin/mkfontscale -a -x /usr/bin/mkfontdir ] ; then
+      echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/cyrillic directory"
+      ( cd /usr/share/fonts/cyrillic ; /usr/bin/mkfontscale . ; /usr/bin/mkfontdir . )
+    fi
   fi
 fi
+if [ -d /usr/share/fonts/terminus ] ; then
+  if [ ! -r /usr/share/fonts/terminus/fonts.dir -o ! -r /usr/share/fonts/terminus/fonts.scale ] ; then
+    if [ -x /usr/bin/mkfontscale -a -x /usr/bin/mkfontdir ] ; then
+      echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/terminus directory"
+      ( cd /usr/share/fonts/terminus ; /usr/bin/mkfontscale . ; /usr/bin/mkfontdir . )
+    fi
+  fi
+fi
 if [ -d /usr/share/fonts/misc ] ; then
   if [ ! -r /usr/share/fonts/misc/fonts.dir -o ! -r /usr/share/fonts/misc/fonts.scale ] ; then
-    echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/misc directory"
-    ( cd /usr/share/fonts/misc ; mkfontscale . ; mkfontdir -e /usr/share/fonts/encodings -e /usr/share/fonts/encodings/large . )
+    if [ -x /usr/bin/mkfontscale -a -x /usr/bin/mkfontdir ] ; then
+      echo "Updating fonts.dir, fonts.scale in /usr/share/fonts/misc directory"
+      ( cd /usr/share/fonts/misc ; /usr/bin/mkfontscale . ; /usr/bin/mkfontdir -e /usr/share/fonts/encodings -e /usr/share/fonts/encodings/large . )
+    fi
   fi
 fi