]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
While and until loops support to GRUB script.
authorBVK Chaitanya <bvk.groups@gmail.com>
Fri, 9 Apr 2010 16:34:21 +0000 (22:04 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Fri, 9 Apr 2010 16:34:21 +0000 (22:04 +0530)
* include/grub/script_sh.h (grub_script_cmdwhile): New struct.
(grub_script_create_cmdwhile): New function prototype.
(grub_script_execute_cmdwhile): New function prototype.
* script/execute.c (grub_script_execute_cmdwhile): New function.
* script/parser.y (command): New commands.
(whilecmd): New grammar rule.
(untilcmd): New grammar rule.
* script/script.c (grub_script_create_cmdwhile): New function.
* util/grub-script-check.c (grub_script_execute_cmdwhile): New
function.

* tests/grub_script_while1.in: New testcase.
* conf/tests.rmk: Rule for new testcase.

1  2 
ChangeLog

diff --cc ChangeLog
index 1db00bc4dba66abcabdf5b4a694b6c6f1d64d51d,7441af4b3ef4a86eac47c4ce86afba18ebfe28da..070461b5e832faf0f858448a577792fdf705017e
+++ b/ChangeLog
@@@ -1,42 -1,3 +1,60 @@@
++2010-04-09  BVK Chaitanya  <bvk.groups@gmail.com>
++
++      While and until loops support to GRUB script.
++
++      * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
++      (grub_script_create_cmdwhile): New function prototype.
++      (grub_script_execute_cmdwhile): New function prototype.
++      * script/execute.c (grub_script_execute_cmdwhile): New function.
++      * script/parser.y (command): New commands.
++      (whilecmd): New grammar rule.
++      (untilcmd): New grammar rule.
++      * script/script.c (grub_script_create_cmdwhile): New function.
++      * util/grub-script-check.c (grub_script_execute_cmdwhile): New
++      function.
++
++      * tests/grub_script_while1.in: New testcase.
++      * conf/tests.rmk: Rule for new testcase.
++
 +2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
 +
 +      * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
 +      as *.jpg.
 +
 +2010-04-09  Mario Vazquez <mariovazq@gmail.com>
 +
 +      GRUB_BACKGROUND support.
 +
 +      * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
 +      * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
 +
 +2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
 +
 +      Load fonts and modules for gfxmenu in grub-mkconfig.
 +      Idea by: Mario Vazquez
 +
 +      * util/grub.d/00_header.in: Load pf2 and image modules.
 +
 +2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
 +
 +      grub-mkconfig multiple terminal support.
 +
 +      * util/grub-mkconfig.in: Handle multiple terminals correctly.
 +      * util/grub.d/00_header.in: Likewise.
 +
 +2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
 +
 +      * Makefile.in: Specify files explicitly instead of using $< and $@ since
 +      we use cd $(srcdir).
 +
 +2010-04-08  Colin Watson  <cjwatson@ubuntu.com>
 +
 +      * util/grub.d/10_linux.in: Only use the first word of
 +      GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
 +      spaces in GRUB_DISTRIBUTOR.
 +      * util/grub.d/10_kfreebsd.in: Likewise.
 +      * util/grub.d/10_hurd.in: Likewise.
 +
  2010-04-06  BVK Chaitanya  <bvk.groups@gmail.com>
  
        Fix unit testing framework for Qemu 0.12.