Loading build/NWGNUtail.inc +12 −3 Original line number Diff line number Diff line Loading @@ -101,9 +101,11 @@ endif # Generic compiler rules # $(AP_WORK)\build\NWGNUversion.inc : $(AP_WORK)\include\ap_release.h $(AP_WORK)\build\nw_ver.awk @echo Generating $(subst /,\,$@) awk -f $(AP_WORK)\build\nw_ver.awk $(AP_WORK)\include\ap_release.h > $(AP_WORK)\build\NWGNUversion.inc ifneq "$(MAKECMDGOALS)" "clean" ifneq "$(findstring clobber_,$(MAKECMDGOALS))" "clobber_" $(AP_WORK)\build\NWGNUversion.inc : $(AP_WORK)\build\nw_ver.awk $(AP_WORK)\include\ap_release.h @echo $(DL)GEN $@$(DL) $(AWK) -f $^ $(SRC)/.svn/all-wcprops > $@ -include $(AP_WORK)\build\NWGNUversion.inc Loading @@ -113,6 +115,13 @@ else VERSION = 2,0,0 VERSION_STR = 2.0.0 endif endif endif ifeq "$(USE_SVNREV)" "1" ifneq "$(strip $(SVN_REVISION))" "" CFLAGS += -DAP_SERVER_ADD_STRING=\"$(SVN_REVISION)\" endif endif ifeq "$(words $(strip $(TARGET_nlm)))" "1" Loading build/nw_ver.awk +13 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,18 @@ BEGIN { ver_str_release = substr($3, 2, length($3) - 2); } } if (ver_str_release) { if (ARGV[2]) { while ((getline < ARGV[2]) > 0) { if (match ($0, /^\/repos\/asf\/!svn\/ver\/[0-9]+\/httpd\/httpd\/(trunk|branches\/[0-9]\.[0-9]\.x)$/)) { gsub(/^\/repos\/asf\/!svn\/ver\/|\/httpd\/httpd\/(trunk|branches\/[0-9]\.[0-9]\.x)$/, "", $0) ver_str_release = svn_rev = "-r" $0 } } } } ver_nlm = ver_major "," ver_minor "," ver_patch; ver_str = ver_major "." ver_minor "." ver_patch ver_str_release; Loading @@ -42,6 +54,7 @@ BEGIN { print "VERSION_STR = " ver_str ""; print "VERSION_MAJMIN = " ver_major ver_minor ""; print "COPYRIGHT_STR = " copyright_str ""; print "SVN_REVISION = " svn_rev ""; } Loading Loading
build/NWGNUtail.inc +12 −3 Original line number Diff line number Diff line Loading @@ -101,9 +101,11 @@ endif # Generic compiler rules # $(AP_WORK)\build\NWGNUversion.inc : $(AP_WORK)\include\ap_release.h $(AP_WORK)\build\nw_ver.awk @echo Generating $(subst /,\,$@) awk -f $(AP_WORK)\build\nw_ver.awk $(AP_WORK)\include\ap_release.h > $(AP_WORK)\build\NWGNUversion.inc ifneq "$(MAKECMDGOALS)" "clean" ifneq "$(findstring clobber_,$(MAKECMDGOALS))" "clobber_" $(AP_WORK)\build\NWGNUversion.inc : $(AP_WORK)\build\nw_ver.awk $(AP_WORK)\include\ap_release.h @echo $(DL)GEN $@$(DL) $(AWK) -f $^ $(SRC)/.svn/all-wcprops > $@ -include $(AP_WORK)\build\NWGNUversion.inc Loading @@ -113,6 +115,13 @@ else VERSION = 2,0,0 VERSION_STR = 2.0.0 endif endif endif ifeq "$(USE_SVNREV)" "1" ifneq "$(strip $(SVN_REVISION))" "" CFLAGS += -DAP_SERVER_ADD_STRING=\"$(SVN_REVISION)\" endif endif ifeq "$(words $(strip $(TARGET_nlm)))" "1" Loading
build/nw_ver.awk +13 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,18 @@ BEGIN { ver_str_release = substr($3, 2, length($3) - 2); } } if (ver_str_release) { if (ARGV[2]) { while ((getline < ARGV[2]) > 0) { if (match ($0, /^\/repos\/asf\/!svn\/ver\/[0-9]+\/httpd\/httpd\/(trunk|branches\/[0-9]\.[0-9]\.x)$/)) { gsub(/^\/repos\/asf\/!svn\/ver\/|\/httpd\/httpd\/(trunk|branches\/[0-9]\.[0-9]\.x)$/, "", $0) ver_str_release = svn_rev = "-r" $0 } } } } ver_nlm = ver_major "," ver_minor "," ver_patch; ver_str = ver_major "." ver_minor "." ver_patch ver_str_release; Loading @@ -42,6 +54,7 @@ BEGIN { print "VERSION_STR = " ver_str ""; print "VERSION_MAJMIN = " ver_major ver_minor ""; print "COPYRIGHT_STR = " copyright_str ""; print "SVN_REVISION = " svn_rev ""; } Loading