Ticket #423: mp-config.1.patch

File mp-config.1.patch, 1.5 KB (added by IdleGod@…, 13 years ago)

Added info to the manpage

  • parser-mpcmd.c

     
    158158            pt->loop = l;
    159159            tmp = 1;
    160160          }
     161        } else if(strcasecmp(opt,"configure") == 0) {
     162          mp_msg(MSGT_CPLAYER,MSGL_INFO, "Configured With: " CONFIGURE "\n");
     163          opt_exit = 1;
    161164        } else if(strcasecmp(opt,"shuffle") == 0) {
    162165          if(last_entry && last_entry->child)
    163166            last_entry->flags |= PLAY_TREE_RND;
  • configure

     
    5555
    5656# Prefer these macros to full length text !
    5757# These macros only return an error code - NO display is done
     58_configureline="$0 $*"
     59
    5860compile_check() {
    5961  echo >> "$TMPLOG"
    6062  cat "$1" >> "$TMPLOG"
     
    75287530#ifndef MPLAYER_CONFIG_H
    75297531#define MPLAYER_CONFIG_H 1
    75307532
     7533#define CONFIGURE "$_configureline"
     7534
    75317535/* use GNU internationalization */
    75327536$_def_i18n
    75337537
  • DOCS/man/en/mplayer.1

     
    590590Prints all available options.
    591591.
    592592.TP
     593.B \-configure
     594Prints the configure line that was run during building.
     595.
     596.TP
    593597.B \-msgcharset <charset>
    594598Convert console messages to the specified character set (default: autodetect).
    595599Text will be in the encoding specified with the \-\-charset configure option.