summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2003-01-20 18:36:09 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2003-01-20 18:36:09 +0000
commit1597738dc93243118a16f7b799ca583271e37d46 (patch)
treea4a5bbf087d114fe41b4fe6cf399f89c0f12bbcf /build
parent3da23b13eff900f418f016da468b9a451694e909 (diff)
downloadlibapr-1597738dc93243118a16f7b799ca583271e37d46.tar.gz
Allow the 'filename' to include extensions, observed by Mladen Turk.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64301 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r--build/win32ver.awk7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/win32ver.awk b/build/win32ver.awk
index 19ab3ebc1..e41811df0 100644
--- a/build/win32ver.awk
+++ b/build/win32ver.awk
@@ -12,6 +12,11 @@ BEGIN {
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 @@ BEGIN {
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\"";
}