From 7775f240641b5caa8e10240c142acad03e06461b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Mon, 21 Oct 2013 18:28:28 +0000 Subject: [PATCH] put version numbers alone into separate file so other tools can pick it up --- include/version.h | 35 +++++++++++++++++++++++++++++++++++ sources/sysinit.c | 4 +--- 2 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 include/version.h diff --git a/include/version.h b/include/version.h new file mode 100644 index 0000000..8f018b1 --- /dev/null +++ b/include/version.h @@ -0,0 +1,35 @@ +/* + * version.h + * + * Created on: 21.10.2013 + * Author: mfro + * + * * This file is part of BaS_gcc. + * + * BaS_gcc is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * BaS_gcc 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 BaS_gcc. If not, see . + * + */ + +#ifndef VERSION_H_ +#define VERSION_H_ + +/* + * increment version number for release + */ + +#define MAJOR_VERSION 0 +#define MINOR_VERSION 8 + + +#endif /* VERSION_H_ */ diff --git a/sources/sysinit.c b/sources/sysinit.c index cbaffe1..fcd84ea 100644 --- a/sources/sysinit.c +++ b/sources/sysinit.c @@ -35,9 +35,7 @@ #include "bas_string.h" #include "bas_types.h" #include "wait.h" - -#define MAJOR_VERSION 0 -#define MINOR_VERSION 8 +#include "version.h" #define UNUSED(x) (void)(x) /* Unused variable */