diff options
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | modules/ProjectCreator.pm | 4 | ||||
-rwxr-xr-x | registry.pl | 3 |
4 files changed, 22 insertions, 0 deletions
@@ -1,3 +1,16 @@ +Wed Feb 15 18:42:30 UTC 2006 Chad Elliott <elliott_c@ociweb.com> + + * README: + * modules/ProjectCreator.pm: + + Added two new pseudo variables 'cmp' for a platform non-specific + way to compare files and 'os' which provides the type of operating + system the project is suited for (win32 or unix). + + * registry.pl: + + Register .mpb files just as .mpc files are registered. + Wed Feb 15 16:03:06 UTC 2006 Chad Elliott <elliott_c@ociweb.com> * config/boost_base.mpb: @@ -160,9 +160,11 @@ postbuild If this is defined in the project, the value will be can be used. <%cat%> - Platform non-specific command to cat a file. + <%cmp%> - Platform non-specific compare command. <%cp%> - Platform non-specific copy command. <%mkdir%> - Platform non-specific mkdir command. <%mv%> - Platform non-specific move command. + <%os%> - Returns either win32 or unix. <%rm%> - Platform non-specific delete command. <%nul%> - Platform non-specific null device. <%gt%> - Project non-specific greater than sign. diff --git a/modules/ProjectCreator.pm b/modules/ProjectCreator.pm index 4c724c7c..2f75e394 100644 --- a/modules/ProjectCreator.pm +++ b/modules/ProjectCreator.pm @@ -3381,17 +3381,21 @@ sub get_command_subs { ## Add the built-in OS compatibility commands if (UNIVERSAL::isa($self, 'WinProjectBase')) { $valid{'cat'} = 'type'; + $valid{'cmp'} = 'fc'; $valid{'cp'} = 'copy /y'; $valid{'mkdir'} = 'mkdir'; $valid{'mv'} = 'move /y'; + $valid{'os'} = 'win32'; $valid{'rm'} = 'del /f/s/q'; $valid{'nul'} = 'nul'; } else { $valid{'cat'} = 'cat'; + $valid{'cmp'} = 'cmp'; $valid{'cp'} = 'cp -f'; $valid{'mkdir'} = 'mkdir -p'; $valid{'mv'} = 'mv -f'; + $valid{'os'} = 'unix'; $valid{'rm'} = 'rm -rf'; $valid{'nul'} = '/dev/null'; } diff --git a/registry.pl b/registry.pl index f76e8150..d93ac751 100755 --- a/registry.pl +++ b/registry.pl @@ -124,6 +124,8 @@ if (defined $ARGV[0]) { delete_key('HKEY_CLASSES_ROOT/mwcfile/'); delete_key('HKEY_CLASSES_ROOT/.mpc/'); delete_key('HKEY_CLASSES_ROOT/mpcfile/'); + delete_key('HKEY_CLASSES_ROOT/.mpb/'); + delete_key('HKEY_CLASSES_ROOT/mpbfile/'); foreach my $type (keys %types) { delete_key('HKEY_CLASSES_ROOT/Directory/shell/MPC' . uc($type) . '/'); @@ -143,6 +145,7 @@ $Registry->{'HKEY_CURRENT_USER/Environment/MPC_ROOT'} = [$MPC_ROOT, 'REG_SZ']; set_ext_icon('mwc', 0); set_ext_icon('mpc', 1); +set_ext_icon('mpb', 1); foreach my $type (keys %types) { set_mwc_command($type, $types{$type}); |