#include <grub/term.h>
#include <grub/misc.h>
#include <grub/gzio.h>
- #include <grub/command.h>
+ #include <grub/extcmd.h>
#include <grub/i18n.h>
- static grub_err_t
- grub_cmd_cat (grub_command_t cmd __attribute__ ((unused)),
- int argc, char **args)
+ static const struct grub_arg_option options[] =
+ {
+ {"dos", -1, 0, N_("Accept DOS-style CR/NL line endings."), 0, 0},
+ {0, 0, 0, 0, 0, 0}
+ };
-grub_cmd_cat (grub_extcmd_t cmd, int argc, char **args)
+ static grub_err_t
++grub_cmd_cat (grub_extcmd_context_t ctxt, int argc, char **args)
{
- struct grub_arg_list *state = cmd->state;
++ struct grub_arg_list *state = ctxt->state;
+ int dos = 0;
grub_file_t file;
char buf[GRUB_DISK_SECTOR_SIZE];
grub_ssize_t size;
normal_mod_SOURCES = normal/main.c normal/cmdline.c normal/dyncmd.c \
normal/auth.c normal/autofs.c \
normal/color.c normal/completion.c normal/datetime.c normal/menu.c \
- normal/menu_entry.c normal/menu_text.c \
+ normal/menu_entry.c normal/menu_text.c normal/charset.c \
normal/misc.c normal/crypto.c normal/term.c normal/context.c \
- script/main.c script/script.c script/execute.c script/argv.c \
- script/main.c script/script.c script/execute.c unidata.c \
++ script/main.c script/script.c script/execute.c script/argv.c unidata.c \
script/function.c script/lexer.c grub_script.tab.c grub_script.yy.c
normal_mod_CFLAGS = $(COMMON_CFLAGS) $(POSIX_CFLAGS) -Wno-error
normal_mod_LDFLAGS = $(COMMON_LDFLAGS)