* tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
authorColin Watson <cjwatson@ubuntu.com>
Mon, 18 Nov 2013 14:02:11 +0000 (14:02 +0000)
committerColin Watson <cjwatson@ubuntu.com>
Mon, 18 Nov 2013 14:02:11 +0000 (14:02 +0000)
files have not been built.

ChangeLog
tests/util/grub-shell.in

index fec4dc7..2c43f6a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-18  Colin Watson  <cjwatson@ubuntu.com>
+
+       * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
+       files have not been built.
+
 2013-11-18  Colin Watson  <cjwatson@ubuntu.com>
 
        * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
index b0081cb..b3632a8 100644 (file)
@@ -434,7 +434,11 @@ elif [ x$boot = xemu ]; then
     mkdir -p "$grubdir/locale"
     cp "@builddir@/"unicode.pf2 "$grubdir/fonts/unicode.pf2"
     cp -R "@srcdir@/themes/starfield" "$grubdir/themes/starfield"
-    cp -R "@srcdir@/po/"*.gmo "$grubdir/locale/"
+    for file in "@srcdir@/po/"*.gmo; do
+       if [ -f "$file" ]; then
+           cp "$file" "$grubdir/locale/"
+       fi
+    done
     cp "${cfgfile}" "$grubdir/grub.cfg"
     cp "${source}" "$grubdir/testcase.cfg"
     @builddir@/grub-core/grub-emu -m "$device_map" -d "$grubdir" | tr -d "\r" | do_trim