You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2003/01/20 19:36:09 UTC
cvs commit: apr/build win32ver.awk
wrowe 2003/01/20 10:36:09
Modified: build win32ver.awk
Log:
Allow the 'filename' to include extensions, observed by Mladen Turk.
Revision Changes Path
1.5 +6 -1 apr/build/win32ver.awk
Index: win32ver.awk
===================================================================
RCS file: /home/cvs/apr/build/win32ver.awk,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- win32ver.awk 1 Jan 2003 00:01:41 -0000 1.4
+++ win32ver.awk 20 Jan 2003 18:36:09 -0000 1.5
@@ -12,6 +12,11 @@
desc=ARGV[2];
rel_h=ARGV[3];
+ filename = file;
+ if (match(file, /\./)) {
+ sub(/\.[^\.]*$/, "", file);
+ }
+
i = 4;
while (length(ARGV[i])) {
if (match(ARGV[i], /icon=/)) {
@@ -93,7 +98,7 @@
print " VALUE \"InternalName\", \"" file "\\0\"";
print " VALUE \"LegalCopyright\", \"Copyright � 2000-2003 "\
"The Apache Software Foundation.\\0\"";
- print " VALUE \"OriginalFilename\", \"" file ".exe\\0\"";
+ print " VALUE \"OriginalFilename\", \"" filename "\\0\"";
if (vendor) {
print " VALUE \"PrivateBuild\", \"" vendor "\\0\"";
}