summaryrefslogtreecommitdiff
path: root/prj_install.pl
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2008-07-18 16:05:54 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2008-07-18 16:05:54 +0000
commit6fd3ad3f828f394c6f668cc6b43981a22e1f6317 (patch)
tree61c90e72b7bf915d9d80c8e5e1837abbbaaadb0d /prj_install.pl
parent97fa1ff1e6cf30fa55cb9c32081ea3ef9055fbd2 (diff)
downloadMPC-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-xprj_install.pl14
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",