From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Contreras Subject: [PATCH v2 10/17] contrib: reomve 'thunderbird-patch-inline' Date: Fri, 9 May 2014 14:11:36 -0500 Message-ID: <1399662703-355-11-git-send-email-felipe.contreras@gmail.com> References: <1399662703-355-1-git-send-email-felipe.contreras@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Junio C Hamano , Felipe Contreras To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Fri May 09 21:12:46 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WiqDt-0001jz-Mi for gcvg-git-2@plane.gmane.org; Fri, 09 May 2014 21:12:46 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757221AbaEITMd convert rfc822-to-quoted-printable (ORCPT ); Fri, 9 May 2014 15:12:33 -0400 Received: from mail-yk0-f172.google.com ([209.85.160.172]:60781 "EHLO mail-yk0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757165AbaEITM2 (ORCPT ); Fri, 9 May 2014 15:12:28 -0400 Received: by mail-yk0-f172.google.com with SMTP id 79so3808672ykr.3 for ; Fri, 09 May 2014 12:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=R7hRSrsKrC0ISFTntCzY4XZJyFxuZKzknJyYgx05EZA=; b=M1+81tBVKqdBLBuDcr1J8fBhn53FprX/5uZA8Uo1GpA/uj+kkTw16MEPDslWsauv2x 83ubB5QVtXav+GT8/gLymIZFBGOJXZY/sTpVfQziczqRR/SwWcP3tTAKy0FbavVXNG/E crxug28FlTg+wy2hV1oW3T9tVIzXlpRV7V6IUzAH75aPCRZWTI3ohE9rCMkHkvj3qUOU D7N6ohAvZ7sRSW0QChW7cDtb1BLKJ67gAdtkI36L5jEunMsluOimHOofGPzvszUBMDJr tQf1GhHcEwJ++xHIjxnsu7/VyMWLH0NCpQ2NnaqLIDstAz0Np1TKPhdPfW2x4V+/i531 Uo2g== X-Received: by 10.236.122.238 with SMTP id t74mr17572297yhh.91.1399662748245; Fri, 09 May 2014 12:12:28 -0700 (PDT) Received: from localhost (189-211-224-40.static.axtel.net. [189.211.224.40]) by mx.google.com with ESMTPSA id p23sm23098yho.27.2014.05.09.12.12.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 May 2014 12:12:26 -0700 (PDT) X-Mailer: git-send-email 1.9.2+fc1.28.g12374c0 In-Reply-To: <1399662703-355-1-git-send-email-felipe.contreras@gmail.com> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: No activity, no tests. Signed-off-by: Felipe Contreras --- contrib/thunderbird-patch-inline/README | 20 ------------ contrib/thunderbird-patch-inline/appp.sh | 55 ------------------------= -------- 2 files changed, 75 deletions(-) delete mode 100644 contrib/thunderbird-patch-inline/README delete mode 100755 contrib/thunderbird-patch-inline/appp.sh diff --git a/contrib/thunderbird-patch-inline/README b/contrib/thunderb= ird-patch-inline/README deleted file mode 100644 index 000147b..0000000 --- a/contrib/thunderbird-patch-inline/README +++ /dev/null @@ -1,20 +0,0 @@ -appp.sh is a script that is supposed to be used together with External= Editor -for Mozilla Thunderbird. It will let you include patches inline in e-m= ails -in an easy way. - -Usage: -- Generate the patch with git format-patch. -- Start writing a new e-mail in Thunderbird. -- Press the external editor button (or Ctrl-E) to run appp.sh -- Select the previously generated patch file. -- Finish editing the e-mail. - -Any text that is entered into the message editor before appp.sh is cal= led -will be moved to the section between the --- and the diffstat. - -All S-O-B:s and Cc:s in the patch will be added to the CC list. - -To set it up, just install External Editor and tell it to use appp.sh = as the -editor. - -Zenity is a required dependency. diff --git a/contrib/thunderbird-patch-inline/appp.sh b/contrib/thunder= bird-patch-inline/appp.sh deleted file mode 100755 index 8dc73ec..0000000 --- a/contrib/thunderbird-patch-inline/appp.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# Copyright 2008 Lukas Sandstr=C3=B6m -# -# AppendPatch - A script to be used together with ExternalEditor -# for Mozilla Thunderbird to properly include patches inline in e-mail= s. - -# ExternalEditor can be downloaded at http://globs.org/articles.php?ln= g=3Den&pg=3D2 - -CONFFILE=3D~/.appprc - -SEP=3D"-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D# Don't remove this line #=3D= -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-" -if [ -e "$CONFFILE" ] ; then - LAST_DIR=3D$(grep -m 1 "^LAST_DIR=3D" "${CONFFILE}"|sed -e 's/^LAST_D= IR=3D//') - cd "${LAST_DIR}" -else - cd > /dev/null -fi - -PATCH=3D$(zenity --file-selection) - -if [ "$?" !=3D "0" ] ; then - #zenity --error --text "No patchfile given." - exit 1 -fi - -cd - > /dev/null - -SUBJECT=3D$(sed -n -e '/^Subject: /p' "${PATCH}") -HEADERS=3D$(sed -e '/^'"${SEP}"'$/,$d' $1) -BODY=3D$(sed -e "1,/${SEP}/d" $1) -CMT_MSG=3D$(sed -e '1,/^$/d' -e '/^---$/,$d' "${PATCH}") -DIFF=3D$(sed -e '1,/^---$/d' "${PATCH}") - -CCS=3D`echo -e "$CMT_MSG\n$HEADERS" | sed -n -e 's/^Cc: \(.*\)$/\1,/gp= ' \ - -e 's/^Signed-off-by: \(.*\)/\1,/gp'` - -echo "$SUBJECT" > $1 -echo "Cc: $CCS" >> $1 -echo "$HEADERS" | sed -e '/^Subject: /d' -e '/^Cc: /d' >> $1 -echo "$SEP" >> $1 - -echo "$CMT_MSG" >> $1 -echo "---" >> $1 -if [ "x${BODY}x" !=3D "xx" ] ; then - echo >> $1 - echo "$BODY" >> $1 - echo >> $1 -fi -echo "$DIFF" >> $1 - -LAST_DIR=3D$(dirname "${PATCH}") - -grep -v "^LAST_DIR=3D" "${CONFFILE}" > "${CONFFILE}_" -echo "LAST_DIR=3D${LAST_DIR}" >> "${CONFFILE}_" -mv "${CONFFILE}_" "${CONFFILE}" --=20 1.9.2+fc1.28.g12374c0