From d1fca807345f903349b91b6e95dc5dbd5376fd3e Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 22 Aug 2013 09:51:28 +0200 Subject: [PATCH] Adding version.c --- version.c | 32 ++++++++++++++++++++++++++++++++ version.h | 25 +++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 version.c create mode 100644 version.h diff --git a/version.c b/version.c new file mode 100644 index 0000000..f00f764 --- /dev/null +++ b/version.c @@ -0,0 +1,32 @@ +/* version.c + * + * Copyright (C) 2013 Henrik Hautakoski + * + * This program 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 2 of the License, or + * (at your option) any later version. + * + * 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 "version.h" + +/* If you walk down a new path in the woods, you leave + trails of where you were. The same goes for software. + when you compile, you no longer know from what source the binary + came from. Therefore we leave a trail. + For now this is unknown but soon we will know were we walked. */ + +#ifndef DLIGHT_VERSION +#define DLIGHT_VERSION "Unknown" +#endif /* DLIGHT_VERSION */ + +char const dlight_version_str[] = DLIGHT_VERSION; diff --git a/version.h b/version.h new file mode 100644 index 0000000..806a759 --- /dev/null +++ b/version.h @@ -0,0 +1,25 @@ +/* version.h + * + * Copyright (C) 2013 Henrik Hautakoski + * + * This program 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 2 of the License, or + * (at your option) any later version. + * + * 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. + */ +#ifndef VERSION_H +#define VERSION_H + +extern const char dlight_version_str[]; + +#endif /* VERSION_H */