X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Fversion.h.tmpl;fp=include%2Fversion.h.tmpl;h=639e6d7c19190f9d7761cd4dfd1cd6f74d733e99;hp=0000000000000000000000000000000000000000;hb=88564da09144e7fd1202fe79aff1371478a69ecf;hpb=516f6cbe18eb229593a41eef7d0ed2567673d603 diff --git a/include/version.h.tmpl b/include/version.h.tmpl new file mode 100644 index 000000000..639e6d7c1 --- /dev/null +++ b/include/version.h.tmpl @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2013-2014 - Raphaël Beamonte + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2 only, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#include + +#ifndef VERSION_H +#define VERSION_H + +#define GIT_VERSION + +/* + * Define the macro containing the FULL version + */ +#ifdef GIT_VERSION +#define FULL_VERSION "" GIT_VERSION +#else /* GIT_VERSION */ +#define FULL_VERSION "v" VERSION +#endif /* GIT_VERSION */ + +#endif /* VERSION_H */