generate-version-strings-from-configure-20010712
authorDerrick Brashear <shadow@dementia.org>
Thu, 12 Jul 2001 18:43:28 +0000 (18:43 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 12 Jul 2001 18:43:28 +0000 (18:43 +0000)
have perfectly good version string. use it.

configure.in
src/config/Makefile.version-NOCML.in [moved from src/config/Makefile.version-NOCML with 63% similarity]

index a7bc132..05d51c3 100644 (file)
@@ -371,6 +371,7 @@ AC_SUBST(WITH_INSECURE)
 
 AC_OUTPUT(             \
 Makefile               \
+src/config/Makefile.version-NOCML \
 src/config/Makefile.${AFS_SYSNAME} \
 src/libafs/MakefileProto.${MKAFS_OSTYPE} \
 )
similarity index 63%
rename from src/config/Makefile.version-NOCML
rename to src/config/Makefile.version-NOCML.in
index 9edc0dd..bc039f9 100644 (file)
@@ -5,11 +5,14 @@
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
 
+PACKAGE=@PACKAGE@
+VERSION=@VERSION@
+
 AFS_component_version_number.o: AFS_component_version_number.c
 
 AFS_component_version_number.c: 
-       echo 'char cml_version_number[]="@(#) OpenAFS devel built ' `date +"%Y-%m-%d"` '";' >AFS_component_version_number.c;
-       echo 'char* AFSVersion = "openafs devel"; ' >>AFS_component_version_number.c;
+       echo 'char cml_version_number[]="@(#) OpenAFS ${VERSION} built ' `date +"%Y-%m-%d"` '";' >AFS_component_version_number.c;
+       echo 'char* AFSVersion = "${PACKAGE} ${VERSION}"; ' >>AFS_component_version_number.c;
 
 noversion: install