Bennett Todd wrote:
> 2005-09-23T04:08:45 DJ Lucas:
>
>>Anyone got an idea for a quick script to split up a
>>regular LFS style (-Naur) diff file? Ideally, just dump each to it's
>>own numbered file...trying to save time on OOo-1.1.5.
>
>
> csplit oughta do the deed handily.
>
> Just tried, yup,
>
> csplit bash-3.0-fixes-3.patch '/^diff -Naur/' '{*}'
>
> tore 'em apart, with the header in xx00 and the rest in xx01, xx02,
> xx03, etc.
>
> -Bennett
That was the one I had seen before. According to it's output, 170
patches (171 files created including xx00). I still needed 167 of them
:-) The script that Alex posted worked very well too. I did split the
patches that included other patches, but that is easy enough to fix.
Anyway, thanks guys, it's worked well...I'm almost done with 1.1.5/gcc4.
-- DJ Lucas
--
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page