From 6e7ff8cba0efaf803e3ef5b5aba4123633fe0658 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 1 Nov 2018 12:33:22 -0400 Subject: Move the code that knows our tor version into a lowest-level lib --- src/lib/version/git_revision.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/lib/version/git_revision.c (limited to 'src/lib/version/git_revision.c') diff --git a/src/lib/version/git_revision.c b/src/lib/version/git_revision.c new file mode 100644 index 0000000000..e5b2ff534e --- /dev/null +++ b/src/lib/version/git_revision.c @@ -0,0 +1,24 @@ +/* Copyright 2001-2004 Roger Dingledine. + * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson. + * Copyright (c) 2007-2018, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +#include "orconfig.h" +#include "lib/version/git_revision.h" + +/** String describing which Tor Git repository version the source was + * built from. This string is generated by a bit of shell kludging in + * src/core/include.am, and is usually right. + */ +const char tor_git_revision[] = +#ifndef _MSC_VER +#include "micro-revision.i" +#endif + ""; + +const char tor_bug_suffix[] = " (on Tor " VERSION +#ifndef _MSC_VER + " " +#include "micro-revision.i" +#endif + ")"; -- cgit v1.2.3-54-g00ecf