[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: pcb.git: branch: master updated (9309dfe4cc76e08ee66cc5320f321d87268dbce9)
The branch, master has been updated
via 9309dfe4cc76e08ee66cc5320f321d87268dbce9 (commit)
via fd4e30f808d757066ad3a9ed0b2cf081828c3654 (commit)
via f7e89b863bc277d1f234c38c2094b7dcdb22a3e4 (commit)
via b5c04ffb0f27c515eed930dbaf41eff8558cd147 (commit)
from 274f391b39034062f24b7806d974051f95d30205 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
NEWS | 5 ++-
README.snapshots | 10 ++++-
utils/git2cl | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 152 insertions(+), 2 deletions(-)
=================
Commit Messages
=================
commit 9309dfe4cc76e08ee66cc5320f321d87268dbce9
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Commit: Dan McMahill <dan@xxxxxxxxxxxx>
Add some missing 'git push' to the instructions.
:100644 100644 d82590a... 0f2d90d... M README.snapshots
commit fd4e30f808d757066ad3a9ed0b2cf081828c3654
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Commit: Dan McMahill <dan@xxxxxxxxxxxx>
Add some last minute news items for 20091101
:100644 100644 a11e413... 82bf0e7... M NEWS
commit f7e89b863bc277d1f234c38c2094b7dcdb22a3e4
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Commit: Dan McMahill <dan@xxxxxxxxxxxx>
Recommend using the -O (obfuscate email addresses) option to git2cl
:100644 100644 3399a8a... d82590a... M README.snapshots
commit b5c04ffb0f27c515eed930dbaf41eff8558cd147
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Commit: Dan McMahill <dan@xxxxxxxxxxxx>
Teach git2cl how to obfuscate email addresses. Also add a --help.
:100755 100755 dc28858... b301649... M utils/git2cl
=========
Changes
=========
commit 9309dfe4cc76e08ee66cc5320f321d87268dbce9
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Commit: Dan McMahill <dan@xxxxxxxxxxxx>
Add some missing 'git push' to the instructions.
diff --git a/README.snapshots b/README.snapshots
index d82590a..0f2d90d 100644
--- a/README.snapshots
+++ b/README.snapshots
@@ -25,6 +25,7 @@ upload the 'pcb-$VERSION.tar.gz' file to the sourceforge file release system
To make a pcb release do the following:
=) Make sure you have a clean checkout of master/origin
+ git checkout master/origin
=) # make sure it makes distfiles ok: (have to build before doing distcheck so
pcb gets built so it can create some of the images in the doc directory)
@@ -47,6 +48,8 @@ To make a pcb release do the following:
unsetenv DISTCHECK_CONFIGURE_FLAGS
=) commit and push any changes which were needed to fix 'distcheck' problems
+ git commit -a
+ git push
=) update the ChangeLog with './utils/git2cl -O > ChangeLog'
@@ -56,6 +59,8 @@ To make a pcb release do the following:
awk '/^2008-11-28/ {print "Changes: " c ; exit} /^20[01][0-9]/ {c++}' ChangeLog
Commit and push NEWS and ChangeLog.
+ git commit NEWS ChangeLog
+ git push
=) if this is a major release, then branch:
@@ -69,6 +74,7 @@ To make a pcb release do the following:
git checkout master
vi configure.ac
git commit configure.ac
+ git push
4. On the release branch, update configure.ac to update the version
for example 20091101_ALPHA. Now pre-release snapshots can be made.
@@ -91,6 +97,7 @@ To make a pcb release do the following:
git commit configure.ac
./autogen.sh
git commit -a
+ git push
git tag -a pcb-20091101-RELEASE
git checkout pcb-20091101-RELEASE
./autogen.sh && ./configure --enable-maintainer-mode \
@@ -152,6 +159,7 @@ To make a pcb release do the following:
./autogen.sh
git commit
git tag -a pcb-20091101-PATCH001
+ git push
=) gmake distclean ; ./autogen.sh &&./configure && gmake distcheck
commit fd4e30f808d757066ad3a9ed0b2cf081828c3654
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Commit: Dan McMahill <dan@xxxxxxxxxxxx>
Add some last minute news items for 20091101
diff --git a/NEWS b/NEWS
index a11e413..82bf0e7 100644
--- a/NEWS
+++ b/NEWS
@@ -1,10 +1,13 @@
========================================================================
Release Notes for PCB snapshot 20091101
========================================================================
-This release represents around 170 commits and as such this summary
+This release represents around 180 commits and as such this summary
clearly is not complete. See the ChangeLog file for the complete list
of changes.
+- [bugfix] Avoid layer buttons getting confused (GTK)
+- [bugfix] Fix dereference bug in hid_find_action()
+- [feature] Speed up some polygon operations
- [bugfix] Don't let DRC change the grid setting
- [bugfix] Correct URL's in some dialogs and output
- [feature] Add filters to load file chooser dialog (GTK)
commit f7e89b863bc277d1f234c38c2094b7dcdb22a3e4
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Commit: Dan McMahill <dan@xxxxxxxxxxxx>
Recommend using the -O (obfuscate email addresses) option to git2cl
diff --git a/README.snapshots b/README.snapshots
index 3399a8a..d82590a 100644
--- a/README.snapshots
+++ b/README.snapshots
@@ -48,7 +48,7 @@ To make a pcb release do the following:
=) commit and push any changes which were needed to fix 'distcheck' problems
-=) update the ChangeLog with './utils/git2cl > ChangeLog'
+=) update the ChangeLog with './utils/git2cl -O > ChangeLog'
=) update the NEWS file with some sort of release notes
summary. You can find the number of commits with something like
commit b5c04ffb0f27c515eed930dbaf41eff8558cd147
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Commit: Dan McMahill <dan@xxxxxxxxxxxx>
Teach git2cl how to obfuscate email addresses. Also add a --help.
diff --git a/utils/git2cl b/utils/git2cl
index dc28858..b301649 100755
--- a/utils/git2cl
+++ b/utils/git2cl
@@ -37,11 +37,68 @@ exec perl -w -x $0 ${1+"$@"} # -*- mode: perl; perl-indent-level: 2; -*-
use strict;
use POSIX qw(strftime);
+use Getopt::Long qw( GetOptions );
use Text::Wrap qw(wrap);
use FileHandle;
use constant EMPTY_LOG_MESSAGE => '*** empty log message ***';
+# Print debugging messages?
+my $Debug = 0;
+
+# Expand usernames to email addresses based on a map file?
+my $User_Map_File = '';
+my $User_Passwd_File;
+my $Mail_Domain;
+my $Obfuscate_Emails = 0;
+
+# Just print usage message and exit?
+my $Print_Usage = 0;
+
+GetOptions('help|usage|h' => \$Print_Usage,
+ 'debug' => \$Debug, # unadvertised option, heh
+ 'obfuscate|o' => \$Obfuscate_Emails,
+ 'usermap|U=s' => \$User_Map_File, # not implemented yet
+ )
+ or die "options parsing failed\n";
+
+if ($Print_Usage) {
+ &usage ();
+ exit (0);
+}
+
+# -------------------------------------
+
+sub usage {
+
+ eval "use Pod::Usage qw( pod2usage )";
+
+ if ( $@ ) {
+ print <<'END';
+
+* Pod::Usage was not found. The formatting may be suboptimal. Consider
+ upgrading your Perl --- Pod::Usage is standard from 5.6 onwards, and
+ versions of perl prior to 5.6 are getting rather rusty, now. Alternatively,
+ install Pod::Usage direct from CPAN.
+END
+
+ local $/ = undef;
+ my $message = <DATA>;
+ $message =~ s/^=(head1|item) //gm;
+ $message =~ s/^=(over|back).*\n//gm;
+ $message =~ s/\n{3,}/\n\n/g;
+ print $message;
+ } else {
+ print "\n";
+ pod2usage( -exitval => 'NOEXIT',
+ -verbose => 1,
+ -output => \*STDOUT,
+ );
+ }
+
+ return;
+}
+
# this is a helper hash for stptime.
# Assumes you are calling 'git log ...' with LC_ALL=C
my %month = (
@@ -112,6 +169,33 @@ sub last_line_len {
return length ($last_line);
}
+# Obfuscate email addresses in the author information at the
+# beginning of each log.
+sub obfuscate_email {
+ my $text = shift; # The text to wrap.
+ my $text_out = '';
+ my $state = 0;
+ my @words = split (/ /, $text);
+ while (@words) # Don't use `foreach' here, it won't work.
+ {
+ my $this_word = shift (@words);
+ if ($state == 0) {
+ # waiting for an email address
+ if ($this_word =~ /^</) {
+ $state = 1;
+ $this_word =~ s/^</* /;
+ $this_word =~ s/\./ dot /g;
+ $this_word =~ s/@/ AT /g;
+ $this_word =~ s/>$/ */;
+ $state = 1;
+ }
+ }
+ $text_out = $text_out . " " . $this_word;
+ }
+
+ return $text_out;
+ }
+
# A custom wrap function, sensitive to some common constructs used in
# log entries.
sub wrap_log_entry {
@@ -281,6 +365,7 @@ sub wrap_log_entry {
# main
+
my @date;
my $author;
my @files;
@@ -311,6 +396,9 @@ while (my $_l = <$fh>) {
if ($state == 0) {
if ($_l =~ m,^Author: (.*),) {
$author = $1;
+ if ($Obfuscate_Emails) {
+ $author = &obfuscate_email ($author);
+ }
}
if ($_l =~ m,^Date: (.*),) {
@date = strptime($1);
@@ -373,3 +461,54 @@ if (@date + 0)
$msg =~ s/[ \t]+\n/\n/g;
print "\t* $msg\n";
}
+
+__DATA__
+
+=head1 NAME
+
+cvs2cl.pl - convert cvs log messages to changelogs
+
+=head1 SYNOPSIS
+
+B<cvs2cl> [I<options>] [I<FILE1> [I<FILE2> ...]]
+
+=head1 DESCRIPTION
+
+cvs2cl produces a GNU-style ChangeLog for CVS-controlled sources by
+running "cvs log" and parsing the output. Duplicate log messages get
+unified in the Right Way.
+
+The default output of cvs2cl is designed to be compact, formally unambiguous,
+but still easy for humans to read. It should be largely self-explanatory; the
+one abbreviation that might not be obvious is "utags". That stands for
+"universal tags" -- a universal tag is one held by all the files in a given
+change entry.
+
+If you need output that's easy for a program to parse, use the B<--xml> option.
+Note that with XML output, just about all available information is included
+with each change entry, whether you asked for it or not, on the theory that
+your parser can ignore anything it's not looking for.
+
+If filenames are given as arguments cvs2cl only shows log information for the
+named files.
+
+=head1 OPTIONS
+
+=over 4
+
+=item B<-h>, B<-help>, B<--help>, B<-?>
+
+Show a short help and exit.
+
+=item B<--obfuscate>, B<-O>
+
+Obfuscate email addresses in the logs.
+
+=item -B<U> I<UFILE>, B<--usermap> I<UFILE>
+
+Expand usernames to email addresses from I<UFILE>.
+NOT IMPLEMENTED YET
+
+=head1 SEE ALSO
+git(1)
+cvs2cl(1)
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs