Changeset ca1fb26a for functions.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
  • functions.c

    ra38becd rca1fb26a  
    115115void owl_function_show_license(void)
    116116{
    117   const char *text;
    118 
    119   text=""
    120     "BarnOwl version " OWL_VERSION_STRING "\n"
     117  char *text = g_strdup_printf(
     118    "BarnOwl version %s\n"
    121119    "Copyright (c) 2006-2011 The BarnOwl Developers. All rights reserved.\n"
    122120    "Copyright (c) 2004 James Kretchmar. All rights reserved.\n"
     
    155153    "WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n"
    156154    "OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n"
    157     "IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n";
     155    "IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
     156    version);
    158157  owl_function_popless_text(text);
     158  g_free(text);
    159159}
    160160
     
    13591359void owl_function_about(void)
    13601360{
    1361   owl_function_popless_text(
    1362     "This is BarnOwl version " OWL_VERSION_STRING ".\n\n"
     1361  char *text = g_strdup_printf(
     1362    "This is BarnOwl version %s.\n\n"
    13631363    "BarnOwl is a fork of the Owl zephyr client, written and\n"
    13641364    "maintained by Alejandro Sedeno and Nelson Elhage at the\n"
     
    13791379    "This program is free software. You can redistribute it and/or\n"
    13801380    "modify under the terms of the Sleepycat License. Use the \n"
    1381     "':show license' command to display the full license\n"
    1382   );
     1381      "':show license' command to display the full license\n",
     1382      version);
     1383  owl_function_popless_text(text);
     1384  g_free(text);
    13831385}
    13841386
     
    17811783
    17821784  owl_fmtext_append_normal(&fm, "  Version: ");
    1783   owl_fmtext_append_normal(&fm, OWL_VERSION_STRING);
     1785  owl_fmtext_append_normal(&fm, version);
    17841786  owl_fmtext_append_normal(&fm, "\n");
    17851787
Note: See TracChangeset for help on using the changeset viewer.