diff --git a/ctags/Makefile.am b/ctags/Makefile.am index 1bae64c0..342d1441 100644 --- a/ctags/Makefile.am +++ b/ctags/Makefile.am @@ -83,6 +83,8 @@ libctags_la_SOURCES = \ main/ptrarray.h \ main/read.c \ main/read.h \ + main/repoinfo.c \ + main/repoinfo.h \ main/routines.c \ main/routines.h \ main/sort.c \ diff --git a/ctags/main/ctags.h b/ctags/main/ctags.h index ed367a72..64faea5b 100644 --- a/ctags/main/ctags.h +++ b/ctags/main/ctags.h @@ -14,12 +14,21 @@ /* * MACROS */ -#ifndef PROGRAM_VERSION -# define PROGRAM_VERSION "5.0.1" +#if defined (HAVE_CONFIG_H) +# define PROGRAM_VERSION PACKAGE_VERSION +#else +# define PROGRAM_VERSION "0.0.0" #endif -#define PROGRAM_NAME "Exuberant Ctags" -#define PROGRAM_URL "http://ctags.sourceforge.net" -#define AUTHOR_NAME "Darren Hiebert" -#define AUTHOR_EMAIL "darren@hiebert.com" +#define PROGRAM_NAME "Universal Ctags" +#define PROGRAM_URL "https://ctags.io/" +#define PROGRAM_COPYRIGHT "Copyright (C) 2015" +#define AUTHOR_NAME "Universal Ctags Team" + +/* + * Constant + */ +extern const char* ctags_repoinfo; +#define CTAGS_FIELD_PREFIX "UCTAGS" + #endif /* CTAGS_MAIN_CTAGS_H */ diff --git a/ctags/main/entry.c b/ctags/main/entry.c index 27082476..78e149c3 100644 --- a/ctags/main/entry.c +++ b/ctags/main/entry.c @@ -149,7 +149,7 @@ static void addPseudoTags (void) writePseudoTag ("TAG_FILE_FORMAT", format, formatComment); writePseudoTag ("TAG_FILE_SORTED", Option.sorted ? "1":"0", "0=unsorted, 1=sorted"); - writePseudoTag ("TAG_PROGRAM_AUTHOR", AUTHOR_NAME, AUTHOR_EMAIL); + writePseudoTag ("TAG_PROGRAM_AUTHOR", AUTHOR_NAME, ""); writePseudoTag ("TAG_PROGRAM_NAME", PROGRAM_NAME, ""); writePseudoTag ("TAG_PROGRAM_URL", PROGRAM_URL, "official site"); writePseudoTag ("TAG_PROGRAM_VERSION", PROGRAM_VERSION, ""); diff --git a/ctags/main/repoinfo.c b/ctags/main/repoinfo.c new file mode 100644 index 00000000..c28e5b91 --- /dev/null +++ b/ctags/main/repoinfo.c @@ -0,0 +1,12 @@ +#include "general.h" +#include "ctags.h" + +#ifdef HAVE_REPOINFO_H +#include "main/repoinfo.h" +#endif + +#ifndef CTAGS_REPOINFO +#define CTAGS_REPOINFO ((char*)0) +#endif + +const char* ctags_repoinfo = CTAGS_REPOINFO; diff --git a/ctags/main/repoinfo.h b/ctags/main/repoinfo.h new file mode 100644 index 00000000..a097dce5 --- /dev/null +++ b/ctags/main/repoinfo.h @@ -0,0 +1 @@ +#define CTAGS_REPOINFO "ff6491f"