Changes in / [883b421:76e80de]
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
rca1fb26a r1c22155 4 4 .deps 5 5 /bin/ 6 BUILD_VERSION.mk7 6 META.yml 8 7 MYMETA.yml … … 41 40 tester 42 41 varstubs.c 43 version.c44 version.c.new45 42 zcrypt -
Makefile.am
rca1fb26a ra223b6b 1 1 ACLOCAL_AMFLAGS = -I m4 2 2 3 GIT_DESCRIPTION := $(if $(wildcard $(srcdir)/.git),$(shell cd $(srcdir) && git describe --match='barnowl-*' HEAD 2>/dev/null)) 4 VERSION = $(if $(GIT_DESCRIPTION),$(GIT_DESCRIPTION:barnowl-%=%),@VERSION@) 5 -include BUILD_VERSION.mk 6 7 FORCE: 8 BUILD_VERSION.mk: $(if $(filter-out $(BUILD_VERSION),$(VERSION)),FORCE) 9 echo 'BUILD_VERSION = $(VERSION)' > $@ 3 GIT_DESCRIPTION := $(if $(wildcard .git),$(shell git describe --match='barnowl-*' HEAD 2>/dev/null)) 4 GIT_FLAGS := $(if $(GIT_DESCRIPTION),-DGIT_VERSION=$(GIT_DESCRIPTION:barnowl-%=%)) 10 5 11 6 bin_PROGRAMS = bin/barnowl … … 14 9 endif 15 10 16 zcrypt_SOURCES = zcrypt.c filterproc.c version.c11 zcrypt_SOURCES = zcrypt.c filterproc.c 17 12 18 13 check_PROGRAMS = bin/tester … … 52 47 -I$(top_srcdir)/libfaim/ \ 53 48 -DDATADIR='"$(pkgdatadir)"' \ 54 -DBINDIR='"$(bindir)"' 49 -DBINDIR='"$(bindir)"' \ 50 $(GIT_FLAGS) 55 51 56 52 CODELIST_SRCS=message.c mainwin.c popwin.c zephyr.c messagelist.c \ … … 68 64 BASE_SRCS = $(CODELIST_SRCS) $(NORMAL_SRCS) 69 65 70 GEN_C = varstubs.c perlglue.c gmarshal_funcs.c version.c version.c.new66 GEN_C = varstubs.c perlglue.c gmarshal_funcs.c 71 67 GEN_H = owl_prototypes.h owl_prototypes.h.new gmarshal_funcs.h 72 68 73 BUILT_SOURCES = $(GEN_ H)69 BUILT_SOURCES = $(GEN_C) $(GEN_H) 74 70 75 71 # Only copy file into place if file.new is different 76 owl_prototypes.h version.c:%: %.new72 %: %.new 77 73 @diff -U0 $@ $< || { \ 78 74 test -f $@ && echo '$@ changed!'; \ … … 91 87 $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@ 92 88 93 version.c.new: Makefile BUILD_VERSION.mk94 $(AM_V_GEN)echo 'const char *version = "$(VERSION)";' > $@95 96 89 gmarshal_funcs.h: marshal_types 97 90 glib-genmarshal --header $< > $@ … … 103 96 $(COMPILE) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES) 104 97 105 CLEANFILES = $(BUILT_SOURCES) $( GEN_C) $(noinst_SCRIPTS) $(check_SCRIPTS) BUILD_VERSION.mk98 CLEANFILES = $(BUILT_SOURCES) $(noinst_SCRIPTS) $(check_SCRIPTS) 106 99 EXTRA_DIST = \ 107 100 autogen.sh \ -
commands.c
rca1fb26a ra38becd 1114 1114 void owl_command_version(void) 1115 1115 { 1116 owl_function_makemsg("BarnOwl version %s", version);1116 owl_function_makemsg("BarnOwl version %s", OWL_VERSION_STRING); 1117 1117 } 1118 1118 -
functions.c
rca1fb26a ra38becd 115 115 void owl_function_show_license(void) 116 116 { 117 char *text = g_strdup_printf( 118 "BarnOwl version %s\n" 117 const char *text; 118 119 text="" 120 "BarnOwl version " OWL_VERSION_STRING "\n" 119 121 "Copyright (c) 2006-2011 The BarnOwl Developers. All rights reserved.\n" 120 122 "Copyright (c) 2004 James Kretchmar. All rights reserved.\n" … … 153 155 "WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n" 154 156 "OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n" 155 "IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n", 156 version); 157 "IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"; 157 158 owl_function_popless_text(text); 158 g_free(text);159 159 } 160 160 … … 1359 1359 void owl_function_about(void) 1360 1360 { 1361 char *text = g_strdup_printf(1362 "This is BarnOwl version %s.\n\n"1361 owl_function_popless_text( 1362 "This is BarnOwl version " OWL_VERSION_STRING ".\n\n" 1363 1363 "BarnOwl is a fork of the Owl zephyr client, written and\n" 1364 1364 "maintained by Alejandro Sedeno and Nelson Elhage at the\n" … … 1379 1379 "This program is free software. You can redistribute it and/or\n" 1380 1380 "modify under the terms of the Sleepycat License. Use the \n" 1381 "':show license' command to display the full license\n", 1382 version); 1383 owl_function_popless_text(text); 1384 g_free(text); 1381 "':show license' command to display the full license\n" 1382 ); 1385 1383 } 1386 1384 … … 1783 1781 1784 1782 owl_fmtext_append_normal(&fm, " Version: "); 1785 owl_fmtext_append_normal(&fm, version);1783 owl_fmtext_append_normal(&fm, OWL_VERSION_STRING); 1786 1784 owl_fmtext_append_normal(&fm, "\n"); 1787 1785 -
owl.c
rca1fb26a r120dac7 36 36 void usage(FILE *file) 37 37 { 38 fprintf(file, "Barnowl version %s\n", version);38 fprintf(file, "Barnowl version %s\n", OWL_VERSION_STRING); 39 39 fprintf(file, "Usage: barnowl [-n] [-d] [-D] [-v] [-h] [-c <configfile>] [-s <confdir>] [-t <ttyname>]\n"); 40 40 fprintf(file, " -n,--no-subs don't load zephyr subscriptions\n"); … … 80 80 break; 81 81 case 'v': 82 printf("This is BarnOwl version %s\n", version);82 printf("This is BarnOwl version %s\n", OWL_VERSION_STRING); 83 83 exit(0); 84 84 case 'h': … … 578 578 /* welcome message */ 579 579 owl_function_debugmsg("startup: creating splash message"); 580 char *welcome = g_strdup_printf(580 owl_function_adminmsg("", 581 581 "-----------------------------------------------------------------------\n" 582 "Welcome to BarnOwl version %s.\n"582 "Welcome to BarnOwl version " OWL_VERSION_STRING ".\n" 583 583 "To see a quick introduction, type ':show quickstart'. \n" 584 584 "Press 'h' for on-line help. \n" … … 588 588 " OvO \n" 589 589 "Please report any bugs or suggestions to bug-barnowl@mit.edu ( ) \n" 590 "-----------------------------------------------------------------m-m---\n", 591 version); 592 owl_function_adminmsg("", welcome); 593 g_free(welcome); 590 "-----------------------------------------------------------------m-m---\n" 591 ); 594 592 595 593 owl_function_debugmsg("startup: setting context interactive"); -
owl.h
rca1fb26a r120dac7 64 64 #include "window.h" 65 65 66 extern const char *version; 66 #ifndef OWL_VERSION_STRING 67 #ifdef GIT_VERSION 68 #define stringify(x) __stringify(x) 69 #define __stringify(x) #x 70 #define OWL_VERSION_STRING stringify(GIT_VERSION) 71 #else 72 #define OWL_VERSION_STRING PACKAGE_VERSION 73 #endif 74 #endif /* !OWL_VERSION_STRING */ 67 75 68 76 /* Feature that is being tested to redirect stderr through a pipe. -
perlconfig.c
rca1fb26a r96d80e9 336 336 } 337 337 338 sv_setpv(get_sv("BarnOwl::VERSION", TRUE), version);338 sv_setpv(get_sv("BarnOwl::VERSION", TRUE), OWL_VERSION_STRING); 339 339 340 340 /* Add the system lib path to @INC */ -
zcrypt.c
rca1fb26a r8f335a8 29 29 #include "filterproc.h" 30 30 31 extern const char *version; 31 #ifndef OWL_VERSION_STRING 32 #ifdef GIT_VERSION 33 #define stringify(x) __stringify(x) 34 #define __stringify(x) #x 35 #define OWL_VERSION_STRING stringify(GIT_VERSION) 36 #else 37 #define OWL_VERSION_STRING PACKAGE_VERSION 38 #endif 39 #endif /* !OWL_VERSION_STRING */ 32 40 33 41 /* Annotate functions in which the caller owns the return value and is … … 149 157 case OPT_VERSION: 150 158 /* Version */ 151 printf("This is zcrypt version %s\n", version);159 printf("This is zcrypt version %s\n", OWL_VERSION_STRING); 152 160 exit(0); 153 161 case OPT_HELP:
Note: See TracChangeset
for help on using the changeset viewer.