From 35e7df613e7fd4aaaa59c8e9c8a52a41539d7281 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sun, 7 Dec 2003 12:38:55 +0000 Subject: [PATCH] removed buildno.h from CVS svn path=/trunk/; revision=6889 --- reactos/subsys/system/explorer/.cvsignore | 1 + reactos/subsys/system/explorer/buildno.h | 11 ----------- reactos/subsys/system/explorer/buildno.h.templ | 11 +++++++++++ reactos/subsys/system/explorer/updatebuildno | 4 +++- reactos/subsys/system/explorer/updatebuildno.bat | 3 ++- 5 files changed, 17 insertions(+), 13 deletions(-) delete mode 100644 reactos/subsys/system/explorer/buildno.h create mode 100644 reactos/subsys/system/explorer/buildno.h.templ diff --git a/reactos/subsys/system/explorer/.cvsignore b/reactos/subsys/system/explorer/.cvsignore index 7d99c957925..8ba457cfd02 100644 --- a/reactos/subsys/system/explorer/.cvsignore +++ b/reactos/subsys/system/explorer/.cvsignore @@ -18,3 +18,4 @@ doxy-doc *.ncb *.plg *.suo +buildno.h diff --git a/reactos/subsys/system/explorer/buildno.h b/reactos/subsys/system/explorer/buildno.h deleted file mode 100644 index 0c95067424f..00000000000 --- a/reactos/subsys/system/explorer/buildno.h +++ /dev/null @@ -1,11 +0,0 @@ -/* Do not edit - Machine generated */ -#ifndef _INC_REACTOS_BUILDNO -#define _INC_REACTOS_BUILDNO -#define KERNEL_VERSION_BUILD 11 -#define KERNEL_VERSION_BUILD_STR "11" -#define KERNEL_RELEASE_RC "0.1.5.11\0" -#define KERNEL_RELEASE_STR "0.1.5.11" -#define KERNEL_VERSION_RC "0.1.5\0" -#define KERNEL_VERSION_STR "0.1.5" -#endif -/* EOF */ diff --git a/reactos/subsys/system/explorer/buildno.h.templ b/reactos/subsys/system/explorer/buildno.h.templ new file mode 100644 index 00000000000..08221cab621 --- /dev/null +++ b/reactos/subsys/system/explorer/buildno.h.templ @@ -0,0 +1,11 @@ +#ifndef _INC_REACTOS_BUILDNO +#define _INC_REACTOS_BUILDNO + +#define KERNEL_VERSION_BUILD 0 +#define KERNEL_VERSION_BUILD_STR "0" +#define KERNEL_RELEASE_RC "0.1.5.0\0" +#define KERNEL_RELEASE_STR "0.1.5.0" +#define KERNEL_VERSION_RC "0.1.5\0" +#define KERNEL_VERSION_STR "0.1.5" + +#endif diff --git a/reactos/subsys/system/explorer/updatebuildno b/reactos/subsys/system/explorer/updatebuildno index ed3229e47a5..77f5352c41f 100755 --- a/reactos/subsys/system/explorer/updatebuildno +++ b/reactos/subsys/system/explorer/updatebuildno @@ -1 +1,3 @@ -cp ../../../include/reactos/buildno.h . \ No newline at end of file +test -r ../../../include/reactos/buildno.h && cp ../../../include/reactos/buildno.h . +test ! -r buildno.h && cp buildno.h.templ buildno.h +exit 0 diff --git a/reactos/subsys/system/explorer/updatebuildno.bat b/reactos/subsys/system/explorer/updatebuildno.bat index 871eef062ba..9f78435a294 100644 --- a/reactos/subsys/system/explorer/updatebuildno.bat +++ b/reactos/subsys/system/explorer/updatebuildno.bat @@ -1 +1,2 @@ -copy /y ..\..\..\include\reactos\buildno.h . >nul +if exist ..\..\..\include\reactos\buildno.h copy /y ..\..\..\include\reactos\buildno.h . >nul +if not exist buildno.h copy /y buildno.h.templ buildno.h