diff options
author | elliott_c <ocielliottc@users.noreply.github.com> | 2008-07-18 16:05:54 +0000 |
---|---|---|
committer | elliott_c <ocielliottc@users.noreply.github.com> | 2008-07-18 16:05:54 +0000 |
commit | 6fd3ad3f828f394c6f668cc6b43981a22e1f6317 (patch) | |
tree | 61c90e72b7bf915d9d80c8e5e1837abbbaaadb0d /prj_install.pl | |
parent | 97fa1ff1e6cf30fa55cb9c32081ea3ef9055fbd2 (diff) | |
download | MPC-6fd3ad3f828f394c6f668cc6b43981a22e1f6317.tar.gz |
ChangeLogTag: Fri Jul 18 16:03:52 UTC 2008 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'prj_install.pl')
-rwxr-xr-x | prj_install.pl | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/prj_install.pl b/prj_install.pl index ae8c00cf..9a7a0fc8 100755 --- a/prj_install.pl +++ b/prj_install.pl @@ -93,9 +93,7 @@ sub copyFiles { } else { $status = copy($file, $dest); - if ($status && -x $file) { - chmod(0755, $dest); - } + chmod(0755, $dest) if ($status && -x $file); } if (!$status) { print STDERR "ERROR: Unable to $type $file to $dest\n"; @@ -105,9 +103,7 @@ sub copyFiles { } } else { - if ($verbose) { - print "Skipping $file\n"; - } + print "Skipping $file\n" if ($verbose); } } return 1; @@ -263,9 +259,9 @@ sub getInsFiles { sub usageAndExit { my $msg = shift; - if (defined $msg) { - print STDERR "$msg\n"; - } + + print STDERR "$msg\n" if (defined $msg); + my $base = basename($0); my $spc = ' ' x (length($base) + 8); print STDERR "$base v$version\n", |