]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
improved NetWare version script; fixed defaults;
authorGuenter Knauf <fuankg@apache.org>
Sat, 11 Jul 2009 15:37:59 +0000 (15:37 +0000)
committerGuenter Knauf <fuankg@apache.org>
Sat, 11 Jul 2009 15:37:59 +0000 (15:37 +0000)
avoid to create version include with clean target.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@793185 13f79535-47bb-0310-9956-ffa450edef68

build/NWGNUtail.inc
build/nw_ver.awk

index 3169f9c8262738f1d3e7209c22e1abfbc9f43989..2c04623d85ef5f1488f1d942492eacb972b57efc 100644 (file)
@@ -58,7 +58,7 @@ $(NLM_NAME)_LINKOPT_DEPENDS   = \
                                $(EOLIST)
 
 ifeq "$(words $(strip $(TARGET_lib)))" "1"
-LIB_NAME                                       = $(basename $(notdir $(TARGET_lib)))
+LIB_NAME                       = $(basename $(notdir $(TARGET_lib)))
 $(LIB_NAME)_LIBLST_DEPENDS     = \
                                $(FILES_lib_objs) \
                                $(AP_WORK)\build\NWGNUenvironment.inc \
@@ -82,17 +82,20 @@ endif
 # Generic compiler rules
 #
 
-$(AP_WORK)\build\NWGNUversion.inc : $(AP_WORK)\include\ap_release.h $(AP_WORK)\build\nw_ver.awk
+ifneq ($(MAKECMDGOALS),clean)
+$(AP_WORK)\build\NWGNUversion.inc : $(AP_WORK)\build\nw_ver.awk $(AP_WORK)\include\ap_release.h
        @echo Generating $(subst /,\,$@)
-       $(AWK) -f $(AP_WORK)\build\nw_ver.awk $(AP_WORK)\include\ap_release.h > $(AP_WORK)\build\NWGNUversion.inc
+       $(AWK) -f $^ > $@
 
 -include $(AP_WORK)\build\NWGNUversion.inc
 
 ifneq "$(strip $(VERSION_STR))" ""
 VERSION_INC = $(AP_WORK)\build\NWGNUversion.inc
 else
-VERSION                = 2,0,0
-VERSION_STR    = 2.0.0
+VERSION                = 2,2,0
+VERSION_STR    = 2.2.0
+VERSION_MAJMIN = 22
+endif
 endif
 
 
index ea6981914b3326389e47931027b56a4a5b4c5c1b..385cd658cd64526cc51d45bdb9680e893524d95c 100644 (file)
 # limitations under the License.
 
 BEGIN {
-
-  # fetch Apache version numbers from input file and writes them to STDOUT
+  # fetch Apache version numbers from input file and write them to STDOUT
 
   while ((getline < ARGV[1]) > 0) {
-    if (match ($0, /^#define AP_SERVER_MAJORVERSION_NUMBER /)) {
+    if (match ($0, /^#define AP_SERVER_COPYRIGHT \\/)) {
+      if (((getline < ARGV[1]) > 0) && (split($0, c, "\"") == 3)) {
+        copyright_str = c[2];
+      }
+    }
+    else if (match ($0, /^#define AP_SERVER_MAJORVERSION_NUMBER /)) {
       ver_major = $3;
     }
     else if (match ($0, /^#define AP_SERVER_MINORVERSION_NUMBER /)) {
@@ -36,6 +40,8 @@ BEGIN {
 
   print "VERSION = " ver_nlm "";
   print "VERSION_STR = " ver_str "";
+  print "VERSION_MAJMIN = " ver_major ver_minor "";
+  print "COPYRIGHT_STR = " copyright_str "";
 
 }