summaryrefslogtreecommitdiff
path: root/modules/ProjectCreator.pm
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2010-12-20 13:41:30 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2010-12-20 13:41:30 +0000
commitdb5b1451508a6965c257624b080dc636385bcabf (patch)
treea5f494ad95bb038b75fd713d0bc193a05dd05c83 /modules/ProjectCreator.pm
parentd9d2f27dde82620c4799d492597f3d0abfb76cf2 (diff)
downloadMPC-db5b1451508a6965c257624b080dc636385bcabf.tar.gz
ChangeLogTag: Mon Dec 20 13:40:26 UTC 2010 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'modules/ProjectCreator.pm')
-rw-r--r--modules/ProjectCreator.pm16
1 files changed, 13 insertions, 3 deletions
diff --git a/modules/ProjectCreator.pm b/modules/ProjectCreator.pm
index e8d82c64..f959dd5d 100644
--- a/modules/ProjectCreator.pm
+++ b/modules/ProjectCreator.pm
@@ -2060,8 +2060,18 @@ sub remove_duplicate_addition {
if (!exists $parts{$val}) {
## We need to supply quotes if there is a space in the value or
## a variable. The variable may contain spaces.
- my $qt = ($val =~ /\s/ || $val =~ /\$\(.+\)/ ? '"' : '');
- $allowed .= $qt . $val . $qt . ' ';
+ if ($val =~ /\s/ || $val =~ /\$\(.+\)/) {
+ ## If we're going to add quotes around this item and the
+ ## value ends in a backslash we need to append another
+ ## backslash so that when it's used with
+ ## StringProcessor::create_array() the function will not think
+ ## that the trailing quote is escaped.
+ $val .= '\\' if ($val =~ /\\$/);
+ $allowed .= '"' . $val . '" ';
+ }
+ else {
+ $allowed .= $val . ' ';
+ }
}
}
$allowed =~ s/\s+$//;
@@ -4025,7 +4035,7 @@ sub get_command_subs {
if (UNIVERSAL::isa($self, 'WinProjectBase') ||
$self->use_win_compatibility_commands()) {
$valid{'cat'} = 'type';
- $valid{'cmp'} = 'fc';
+ $valid{'cmp'} = 'fc /b';
$valid{'cp'} = 'copy /y';
$valid{'mkdir'} = 'mkdir';
$valid{'mv'} = 'move /y';