All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch] Unifont search in configure.ac
@ 2010-05-22 13:17 Grégoire Sutre
  2010-06-07 21:29 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Grégoire Sutre @ 2010-05-22 13:17 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

Hi,

With the attached patch, unifont is searched by extension first (pcf
being the preferred one), and then by directory.

The first directory being searched is `.', which allows non-root users
to install ascii.pf2 and unifont.pf2 by first downloading unifont in
the build directory.

Grégoire

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: unifont-patch.diff --]
[-- Type: text/x-patch; name="unifont-patch.diff", Size: 1046 bytes --]

=== modified file 'ChangeLog'
--- ChangeLog	2010-05-21 18:22:29 +0000
+++ ChangeLog	2010-05-22 13:03:00 +0000
@@ -1,3 +1,7 @@
+2010-05-22  Grégoire Sutre  <gregoire.sutre@gmail.com>
+
+	* configure.ac: Add `.' to the directories searched for unifont.
+
 2010-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
 
 	* kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry

=== modified file 'configure.ac'
--- configure.ac	2010-05-18 11:33:35 +0000
+++ configure.ac	2010-05-22 13:06:31 +0000
@@ -179,11 +179,13 @@
   AC_MSG_ERROR([bison is not found])
 fi
 
-for file in /usr/src/unifont.bdf /usr/share/fonts/X11/misc/unifont.pcf.gz /usr/share/fonts/unifont/unifont.pcf.gz; do
-  if test -e $file ; then
-    AC_SUBST([FONT_SOURCE], [$file])
-    break
-  fi
+for ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
+  for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont; do
+    if test -f "$dir/unifont.$ext"; then
+      AC_SUBST([FONT_SOURCE], [$dir/unifont.$ext])
+      break 2
+    fi
+  done
 done
 
 AC_PROG_INSTALL


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch] Unifont search in configure.ac
  2010-05-22 13:17 [Patch] Unifont search in configure.ac Grégoire Sutre
@ 2010-06-07 21:29 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2010-06-07 21:29 UTC (permalink / raw)
  To: The development of GNU GRUB


[-- Attachment #1.1: Type: text/plain, Size: 605 bytes --]

Go ahead
On 05/22/2010 03:17 PM, Grégoire Sutre wrote:
> Hi,
>
> With the attached patch, unifont is searched by extension first (pcf
> being the preferred one), and then by directory.
>
> The first directory being searched is `.', which allows non-root users
> to install ascii.pf2 and unifont.pf2 by first downloading unifont in
> the build directory.
>
> Grégoire
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


[-- Attachment #1.2: Type: text/html, Size: 1335 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-06-07 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-22 13:17 [Patch] Unifont search in configure.ac Grégoire Sutre
2010-06-07 21:29 ` Vladimir 'φ-coder/phcoder' Serbinenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.