]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-version-info-20070920
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 20 Sep 2007 12:46:07 +0000 (12:46 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 20 Sep 2007 12:46:07 +0000 (12:46 +0000)
add version info to the threaded version of butc.exe that we ship

(cherry picked from commit c984f03a9185e5b1b69e182ad891caa83541d08c)

src/tbutc/NTMakefile
src/tbutc/butc.rc [new file with mode: 0644]

index 41c1388d08e1200db9440ca1871c2cae51eda033..ba1f13d6b28a9298bae75d05b241f690c7a0ae55 100644 (file)
@@ -66,6 +66,9 @@ BUTCOBJS   = $(OUT)\dbentries.obj \
          $(OUT)\butc_xbsa.obj \
          $(LWPOBJS) \
          $(BUCOORDOBJS)
+
+BUTCRES = $(OUT)\butc.res
+
 BUTCINCLUDE= -I. -I$(DESTDIR)\include -I$(XBSADIR)
 BUTCLIBS=$(DESTDIR)\lib\afs\afsbudb.lib  \
             $(DESTDIR)\lib\afs\afsbubasics.lib \
@@ -110,7 +113,9 @@ BUTCLIBS=$(DESTDIR)\lib\afs\afsbudb.lib  \
 # nmake /nologo /f ntmakefile install
 #----------------------------------------------- BUTC
 
-$(BUTCEXE): $(BUTCOBJS) $(BUTCLIBS)
+$(BUTCRES): butc.rc AFS_component_version_number.h
+
+$(BUTCEXE): $(BUTCOBJS) $(BUTCRES) $(BUTCLIBS)
        $(EXECONLINK) dnsapi.lib mpr.lib
         $(_VC_MANIFEST_EMBED_EXE)
        $(EXEPREP)
@@ -186,3 +191,5 @@ noversion: install
 
 mkdir:
        
+clean::
+       $(DEL) $(BUTCRES)
diff --git a/src/tbutc/butc.rc b/src/tbutc/butc.rc
new file mode 100644 (file)
index 0000000..4c14377
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ * 
+ * This software has been released under the terms of the IBM Public
+ * License.  For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
+ */
+
+/* Define VERSIONINFO resource */
+
+#define  AFS_VERINFO_FILE_DESCRIPTION "AFS Tape Coordinator Server (threaded)"
+#define  AFS_VERINFO_NAME "butc"
+#define  AFS_VERINFO_FILENAME "butc.exe"
+
+#include "AFS_component_version_number.h"
+#include "..\config\NTVersioninfo.rc"