Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262459AbVDYCfj (ORCPT ); Sun, 24 Apr 2005 22:35:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262466AbVDYCff (ORCPT ); Sun, 24 Apr 2005 22:35:35 -0400 Received: from ausc60pc101.us.dell.com ([143.166.85.206]:4902 "EHLO ausc60pc101.us.dell.com") by vger.kernel.org with ESMTP id S262459AbVDYCfW (ORCPT ); Sun, 24 Apr 2005 22:35:22 -0400 X-IronPort-AV: i="3.92,127,1112590800"; d="scan'208"; a="252136203:sNHT27718624" Date: Sun, 24 Apr 2005 21:34:20 -0500 From: Matt Domsch To: "David A. Wheeler" Cc: Paul Jakma , Linus Torvalds , Sean , Thomas Glanzmann , David Woodhouse , Jan Dittmer , Greg KH , Kernel Mailing List , Git Mailing List Subject: Re: Git-commits mailing list feed. Message-ID: <20050425023420.GA14696@lists.us.dell.com> References: <1114266083.3419.40.camel@localhost.localdomain> <426A5BFC.1020507@ppp0.net> <1114266907.3419.43.camel@localhost.localdomain> <20050423175422.GA7100@cip.informatik.uni-erlangen.de> <2911.10.10.10.24.1114279589.squirrel@linux1> <426C4168.6030008@dwheeler.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <426C4168.6030008@dwheeler.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1167 Lines: 55 On Sun, Apr 24, 2005 at 09:01:28PM -0400, David A. Wheeler wrote: > It may be better to have them as simple detached signatures, which are > completely separate files (see gpg --detached). > Yeah, gpg currently implements detached signatures > by repeating what gets signed, which is unfortunate, > but the _idea_ is the right one. I solve this with two simple scripts, "sign" calls "cutsig". -------------- sign #!/bin/sh DEFAULT_KEY="my-private-key-string" CUTSIG=~/bin/cutsig.pl usage() { echo "usage: $0 filename" echo " produces filename.sign" } if [ $# -lt 1 ]; then usage exit 1; fi gpg --armor --clearsign --detach-sign --default-key "${DEFAULT_KEY} -v -v -o - ${1} | \ ${CUTSIG} > ${1}.sign exit 0 ----------------- cutsig #!/usr/bin/perl -w do { $line = ; } until $line =~ "-----BEGIN PGP SIGNATURE-----"; print $line; while ( $line = ) { print $line; } exit 0; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/