Changeset ca1fb26a for owl.c


Ignore:
Timestamp:
Aug 11, 2013, 4:36:03 PM (8 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master
Children:
f1a71c8, 441fd42, 883b421
Parents:
685cca7
git-author:
Anders Kaseorg <andersk@mit.edu> (06/20/13 12:08:41)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/11/13 16:36:03)
Message:
Be smarter about rebuilding on version number changes

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r120dac7 rca1fb26a  
    3636void usage(FILE *file)
    3737{
    38   fprintf(file, "Barnowl version %s\n", OWL_VERSION_STRING);
     38  fprintf(file, "Barnowl version %s\n", version);
    3939  fprintf(file, "Usage: barnowl [-n] [-d] [-D] [-v] [-h] [-c <configfile>] [-s <confdir>] [-t <ttyname>]\n");
    4040  fprintf(file, "  -n,--no-subs        don't load zephyr subscriptions\n");
     
    8080      break;
    8181    case 'v':
    82       printf("This is BarnOwl version %s\n", OWL_VERSION_STRING);
     82      printf("This is BarnOwl version %s\n", version);
    8383      exit(0);
    8484    case 'h':
     
    578578  /* welcome message */
    579579  owl_function_debugmsg("startup: creating splash message");
    580   owl_function_adminmsg("",
     580  char *welcome = g_strdup_printf(
    581581    "-----------------------------------------------------------------------\n"
    582     "Welcome to BarnOwl version " OWL_VERSION_STRING ".\n"
     582    "Welcome to BarnOwl version %s.\n"
    583583    "To see a quick introduction, type ':show quickstart'.                  \n"
    584584    "Press 'h' for on-line help.                                            \n"
     
    588588    "                                                                 OvO   \n"
    589589    "Please report any bugs or suggestions to bug-barnowl@mit.edu    (   )  \n"
    590     "-----------------------------------------------------------------m-m---\n"
    591   );
     590    "-----------------------------------------------------------------m-m---\n",
     591    version);
     592  owl_function_adminmsg("", welcome);
     593  g_free(welcome);
    592594
    593595  owl_function_debugmsg("startup: setting context interactive");
Note: See TracChangeset for help on using the changeset viewer.