From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31209 invoked from network); 20 Jul 2020 18:12:06 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 20 Jul 2020 18:12:06 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 0330C9BA75; Tue, 21 Jul 2020 04:12:04 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id E0DAA9BA30; Tue, 21 Jul 2020 04:11:15 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QhauArCO"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 14F5E9BA30; Tue, 21 Jul 2020 04:11:15 +1000 (AEST) Received: from mail-oi1-f179.google.com (mail-oi1-f179.google.com [209.85.167.179]) by minnie.tuhs.org (Postfix) with ESMTPS id ED1C49BA2A for ; Tue, 21 Jul 2020 04:11:13 +1000 (AEST) Received: by mail-oi1-f179.google.com with SMTP id r8so15079535oij.5 for ; Mon, 20 Jul 2020 11:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=sdGQ36pws68L6EoONwC29QmxWl/FTjby7NEqTLgcH0Q=; b=QhauArCOwsPUa1LTHwK0sv7wxCuuON8FHU1L5sgWZZXXOEdqkHiPtOUPdm2uNe7oU3 BLqklEutt6TSU3Twa36BPXtxR3UF2Tapf8QXngkkg7L1GQZJ8rMKlfSOERnZwPDrw9MP lY+0TEj2LKdCpkn/RgMAQWoqx4djZFVkgt/ZuhiG/Os5uw11R8/8I11tT7U+p72yOhit /o7WOGuWkHjNauhVEczAhCND+ofENOrxpQXPCkL8jg0MtLp+JostzpTXXaC/+CQTu6pY 6VbmOhdk4GBMim9U9OzTLbSn68Hu5iPo+Btx4LueMNuvnN6juXuSQ2QGK7xf/85OlFW7 Zw+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=sdGQ36pws68L6EoONwC29QmxWl/FTjby7NEqTLgcH0Q=; b=EFjYEaBArGwJcz1A6krqt51FQQkogAlVyHmlNAG5tLgFQsl/Y/MZA8GnIGPjd0U3Bp 1QJ8f6AhRFTRmVYSGJDojaYAxxs5knvQSA5Ft1O9B/uA6ujn7GvCqQC0dCsNZmBKcu55 vaspv7QckTN3btdxbBw+YIdnTD0RnCxxhQrfEHMBAh41+37nnCiQBFFOq1V3NE5rwkWt ziA/isxQpbX6IlODC5lbfDS9iKKu2R26UUz8ydo0PPZVOWrBxYAd7o4NdutMHQ4OZcBH UbUf6rMLMNYDAiQdooSUnR4xLfyYl5Wx+BN47SG5dwWG8n45zvcElw7bGFPBMLnDjVUJ h0Dg== X-Gm-Message-State: AOAM532p4eZC0Rip9wUEQaH57sOQ6AaklBRuAfX7yqAjf6OhSHpmm20d wGq9eTmGXS7xu5L7602KaAgeK5cQeNk= X-Google-Smtp-Source: ABdhPJzTywNDaS6gk8WITLho1uzJZXyJ/AZTZT+fQG+lKv7qhyFU+D6VHtRyaa8iFsfoeOYQTE+K1Q== X-Received: by 2002:aca:b7d5:: with SMTP id h204mr455841oif.62.1595268673052; Mon, 20 Jul 2020 11:11:13 -0700 (PDT) Received: from terra.local (99-139-148-170.lightspeed.rcsntx.sbcglobal.net. [99.139.148.170]) by smtp.gmail.com with ESMTPSA id s15sm77160otg.24.2020.07.20.11.11.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Jul 2020 11:11:12 -0700 (PDT) To: Warner Losh References: <78041442-c5e5-1b5c-8565-b6d31f23ec1b@gmail.com> From: Will Senn Message-ID: Date: Mon, 20 Jul 2020 13:11:11 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------6EEA4947409406E8B6F6D427" Content-Language: en-US Subject: Re: [TUHS] Traditional method of dealing with embedded shar files X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" This is a multi-part message in MIME format. --------------6EEA4947409406E8B6F6D427 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 7/20/20 12:55 PM, Warner Losh wrote: > Will said: > > My questions for y'all are how would you go about doing this? Use > vi to delete everything through the ==== cut here line? Use some > combination of standard unix tools to chop it up? What was your > workflow for patching up the system using these files? > > > sed -e '1,/---cut here---/d' < $patch | sh -x > > is what I use, but there's a wide variety of 'cut here' lines in the > 2.11BSD patches, so I have had to taylor to each patch. Thanks, this is nice and simple. I'll be on the lookout for the differences. Will --------------6EEA4947409406E8B6F6D427 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 7/20/20 12:55 PM, Warner Losh wrote:
Will said:
My questions for y'all are how would you go about doing this? Use vi to delete everything through the ==== cut here line? Use some combination of standard unix tools to chop it up? What was your workflow for patching up the system using these files?

sed -e '1,/---cut here---/d' < $patch | sh -x

is what I use, but there's a wide variety of 'cut here' lines in the 2.11BSD patches, so I have had to taylor to each patch.
 
Thanks, this is nice and simple. I'll be on the lookout for the differences.

Will
--------------6EEA4947409406E8B6F6D427--