All of lore.kernel.org
 help / color / mirror / Atom feed
* Generic filters for git archive?
@ 2009-12-08  1:06 Russ Dill
  2009-12-09 22:48 ` René Scharfe
  0 siblings, 1 reply; 4+ messages in thread
From: Russ Dill @ 2009-12-08  1:06 UTC (permalink / raw)
  To: git

I'm trying to add copyright headers to my source files as they are
exported via git archive. eg:

* $Copyright$

to

 * Copyright (c) 2003-2009 by Foo Bar
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

And properly handling things like '# $Copyright$', '// $Copyright$',
etc. I have a sed script that does this, but no way to apply it to the
output of git archive. I tried setting up a smudge filter that would
only smudge output on archive exports, but it doesn't appear that the
smudge filters get run on git archive.

I am currently running 1.6.3.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-15 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-08  1:06 Generic filters for git archive? Russ Dill
2009-12-09 22:48 ` René Scharfe
2009-12-15  7:08   ` Russ Dill
2009-12-15 13:06     ` René Scharfe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.