releng r1038 - trunk/tools
- From: lmedinas svn gnome org
- To: svn-commits-list gnome org
- Subject: releng r1038 - trunk/tools
- Date: Tue, 31 Mar 2009 12:00:02 +0000 (UTC)
Author: lmedinas
Date: Tue Mar 31 12:00:02 2009
New Revision: 1038
URL: http://svn.gnome.org/viewvc/releng?rev=1038&view=rev
Log:
2009-03-31 Luis Medinas <lmedinas gnome org>
* prepare-ChangeLog.pl:
Add support for git >= 1.6.x on prepare.Changelog script.
Modified:
trunk/tools/ChangeLog
trunk/tools/prepare-ChangeLog.pl
Modified: trunk/tools/prepare-ChangeLog.pl
==============================================================================
--- trunk/tools/prepare-ChangeLog.pl (original)
+++ trunk/tools/prepare-ChangeLog.pl Tue Mar 31 12:00:02 2009
@@ -12,6 +12,7 @@
# Sven Herzberg added Git support
# Behdad Esfahbod improved the file format
# last updated 13 February 2007
+# Luis Medinas added support for git >= 1.6.x
#
# (Someone put a license in here, like maybe GPL.)
#
@@ -91,7 +92,7 @@
$changelist = "";
}
}
-elsif (system ("git-rev-parse --git-dir > /dev/null") >> 8 == 0)
+elsif (system ("git rev-parse --git-dir > /dev/null") >> 8 == 0)
{
$command = "git";
}
@@ -108,11 +109,11 @@
open ERRORS, "cvs update $logname |" or die "The cvs update of ChangeLog failed: $OS_ERROR.\n";
} elsif ($command eq "svn") {
print STDERR " Updating $logname from svn repository.\n";
- open ERRORS, "svn update $logname |" or die "The cvs update of ChangeLog failed: $OS_ERROR.\n";
+ open ERRORS, "svn update $logname |" or die "The svn update of ChangeLog failed: $OS_ERROR.\n";
} else {
- print STDERR " Not updating ChangeLog from git repository.\n";
- #open ERRORS, "svn update ChangeLog |" or die "The cvs update of ChangeLog failed: $OS_ERROR.\n";
- open ERRORS, "true |";
+ print STDERR " Updating ChangeLog from git repository.\n";
+ open ERRORS, "git checkout $logname |" or die "The git update of ChangeLog failed: $OS_ERROR.\n";
+ #open ERRORS, "true |";
}
print STDERR " $ARG" while <ERRORS>;
close ERRORS;
@@ -136,7 +137,7 @@
{
my ($tmphandle,$tmpname) = tempfile (UNLINK => 1);
print STDERR " Running git diff to find changes.\n";
- my @args = ("git-diff", "--cached", "--quiet");
+ my @args = ("git diff --cached --quiet");
my $cached = "HEAD";
my $reference = ""; # our reference for diffing; HEAD or --cached
system (@args);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]