summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2010-12-23 15:52:38 +0100
committeraxis <qt-info@nokia.com>2010-12-23 15:55:55 +0100
commit76c1492a51746730c1b51539b87f8d8c810f44ff (patch)
treeae54881016ceb0e2d4653e4db98ca6401e22f094 /bin
parentc168138195b623afc523ddd647dcfb690106c845 (diff)
downloadqt4-tools-76c1492a51746730c1b51539b87f8d8c810f44ff.tar.gz
Fixed a bug in elf2e32_qtwrapper regarding spaces in def files.
It would not parse the line correctly if a space was missing between the "@" and the ordinal number. RevBy: Trust me
Diffstat (limited to 'bin')
-rwxr-xr-xbin/elf2e32_qtwrapper.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/elf2e32_qtwrapper.pl b/bin/elf2e32_qtwrapper.pl
index d91be14fba..a90877e207 100755
--- a/bin/elf2e32_qtwrapper.pl
+++ b/bin/elf2e32_qtwrapper.pl
@@ -146,7 +146,7 @@ while (1) {
$origDefLine = <$origDefFile>;
if (defined($origDefLine)) {
$origDefLine =~ s/[\n\r]//;
- if ($origDefLine =~ /([a-z0-9_]+) +\@ ([0-9]+) (.*)/i) {
+ if ($origDefLine =~ /([a-z0-9_]+) +\@ *([0-9]+) (.*)/i) {
$origSym = $1;
$origOrdinal = $2;
$origExtraData = $3;
@@ -161,7 +161,7 @@ while (1) {
if ($savedNewDefFileLine) {
# This happens if the new def file was missing an entry.
$newDefLine = $savedNewDefFileLine;
- $newDefLine =~ /([a-z0-9_]+) +\@ ([0-9]+) (.*)/i or die("$0: Shouldn't happen");
+ $newDefLine =~ /([a-z0-9_]+) +\@ *([0-9]+) (.*)/i or die("$0: Shouldn't happen");
$newSym = $1;
$newOrdinal = $2;
$newExtraData = $3;
@@ -171,7 +171,7 @@ while (1) {
$newDefLine = <$newDefFile>;
if (defined($newDefLine)) {
$newDefLine =~ s/[\n\r]//;
- if ($newDefLine =~ /([a-z0-9_]+) +\@ ([0-9]+) (.*)/i) {
+ if ($newDefLine =~ /([a-z0-9_]+) +\@ *([0-9]+) (.*)/i) {
$newSym = $1;
$newOrdinal = $2;
$newExtraData = $3;