summaryrefslogtreecommitdiff
path: root/Porting
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-01-27 11:18:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-01-27 11:18:51 +0000
commitc83d1ba61828b9945a2d1f43c1c4e1c9ea755cfd (patch)
tree05e3bc4567cfc4664571d31bfc4d9a63f711424e /Porting
parent90c874bfb9f46145da808c5422e4602834112a1a (diff)
parentb181b6fb157975572d5e0c5c46c1594e317a45ba (diff)
downloadperl-c83d1ba61828b9945a2d1f43c1c4e1c9ea755cfd.tar.gz
Integrate with Sarathy.
p4raw-id: //depot/cfgperl@4913
Diffstat (limited to 'Porting')
-rwxr-xr-xPorting/p4desc11
1 files changed, 6 insertions, 5 deletions
diff --git a/Porting/p4desc b/Porting/p4desc
index b6b412d517..0bf79da2e0 100755
--- a/Porting/p4desc
+++ b/Porting/p4desc
@@ -65,7 +65,7 @@ my $cur = m|^Affected files| ... m|^Differences|;
# while we are within range
if ($cur) {
- if (m|^\.\.\. (//depot/.+?#\d+) add$|) {
+ if (m{^\.\.\. (//depot/.+?#\d+) (add|branch)$}) {
my $newfile = $1;
push @addfiles, $newfile;
warn "$newfile add, revision != 1!\n" unless $newfile =~ /#1$/;
@@ -90,9 +90,9 @@ sub newfiles {
my $addfile;
my $ret = "";
for $addfile (@addfiles) {
- my $type = `p4 -p $p4port files $addfile`;
+ my $type = `p4 -p $p4port files '$addfile'`;
if ($?) {
- warn "$0: `p4 -p $p4port print $addfile` failed, status[$?]\n";
+ warn "$0: `p4 -p $p4port print '$addfile'` failed, status[$?]\n";
next;
}
$type =~ m|^//.*\((.+)\)$| or next;
@@ -101,9 +101,9 @@ sub newfiles {
$ret .= "\n==== $addfile ($type) ====\n\n";
next;
}
- my @new = `p4 -p $p4port print $addfile`;
+ my @new = `p4 -p $p4port print '$addfile'`;
if ($?) {
- die "$0: `p4 -p $p4port print $addfile` failed, status[$?]\n";
+ die "$0: `p4 -p $p4port print '$addfile'` failed, status[$?]\n";
}
my $desc = shift @new; # discard initial description
$ret .= "\n==== $addfile ($type) ====\n\n";
@@ -111,6 +111,7 @@ sub newfiles {
$lines = "" if @new < 2;
$ret .= "\@\@ -0,0 +1$lines \@\@\n";
$ret .= join("+","",@new);
+ $ret .= "\n\\ No newline at end of file\n" if $ret !~ /\n$/;
}
@addfiles = ();
return $ret;