Ignore:
Timestamp:
02/23/09 20:40:47 (16 years ago)
Author:
r2d
Message:

add version information to mpcchap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/mpcchap/mpcchap.c

    r427 r429  
    4444#endif
    4545
     46#define MPCCHAP_MAJOR 0
     47#define MPCCHAP_MINOR 9
     48#define MPCCHAP_BUILD 0
     49
     50#define _cat(a,b,c) #a"."#b"."#c
     51#define cat(a,b,c) _cat(a,b,c)
     52#define MPCCHAP_VERSION cat(MPCCHAP_MAJOR,MPCCHAP_MINOR,MPCCHAP_BUILD)
     53
     54const char About[] = "%s - Musepack (MPC) sv8 chapter editor v" MPCCHAP_VERSION " (C) 2008-2009 MDT\nBuilt " __DATE__ " " __TIME__ "\n";
     55
     56
    4657static const int Ptis[] = {     PTI_TITLE, PTI_PERFORMER, PTI_SONGWRITER, PTI_COMPOSER,
    4758                PTI_ARRANGER, PTI_MESSAGE, PTI_GENRE};
     
    5162static void usage(const char *exename)
    5263{
    53         printf(
     64        fprintf(stderr,
    5465                "Usage: %s <infile.mpc> <chapterfile.ini / cuefile>\n"
    5566                "   if chapterfile.ini exists, chapter tags in infile.mpc will be\n"
     
    268279        int chap_nb;
    269280
     281        fprintf(stderr, About, argv[0]);
     282
    270283        if (argc != 3)
    271284                usage(argv[0]);
Note: See TracChangeset for help on using the changeset viewer.