apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mladen Turk" <mt...@mappingsoft.com>
Subject [PATCH] win32ver.awk
Date Wed, 15 Jan 2003 14:25:31 GMT
Hi,

Totally unneeded patch:)

Solves the OriginalFilename decoration for dll's and so.
For example libhttpd has original filename as libhttpd.exe not
libhttpd.dll, and my stupid antivirus program thinks of that as an
potential virus!

Anyhow here is the patch.

RCS file: /home/cvspublic/httpd-2.0/build/win32/win32ver.awk,v
retrieving revision 1.5
diff -u -r1.5 win32ver.awk
--- win32ver.awk	23 Aug 2002 19:36:26 -0000	1.5
+++ win32ver.awk	15 Jan 2003 14:21:35 -0000
@@ -45,7 +45,15 @@
       ver_patch = substr($3, 2, length($3) - 2);       
     }
   }
-
+  if (match (file, /^mod_/)) {
+    fext = ".so";
+  }
+  else if (match (file, /^lib/)) {
+    fext = ".dll";
+  }
+  else {
+    fext = ".exe";
+  }
   ver = ver_major "." ver_minor "." ver_patch;
   verc = ver_major "," ver_minor "," ver_patch;   
   gsub(/\./, ",", verc);
@@ -94,7 +102,7 @@
   print "      VALUE \"InternalName\", \"" file "\\0\"";
   print "      VALUE \"LegalCopyright\", \"Copyright C 2000-2002 "\
         "The Apache Software Foundation.\\0\"";
-  print "      VALUE \"OriginalFilename\", \"" file ".exe\\0\"";
+  print "      VALUE \"OriginalFilename\", \"" file fext "\\0\"";
   if (vendor) {
     print "      VALUE \"PrivateBuild\", \"" vendor "\\0\"";
   }


MT.


Mime
View raw message