linux-um archives
 help / color / mirror / Atom feed
From: Frank Sorenson <frank@tuxrocks.com>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: bodo.stroesser@fujitsu-siemens.com
Subject: [uml-devel] Re: Auto-updating Jeff Dike tree
Date: Mon, 29 Nov 2004 15:09:06 -0700	[thread overview]
Message-ID: <41AB9E02.9050400@tuxrocks.com> (raw)
In-Reply-To: <200410132008.59231.blaisorblade_spam@yahoo.it>

[-- Attachment #1: Type: text/plain, Size: 869 bytes --]

BlaisorBlade wrote:
> I use the attached script (questionable as much as you want, i.e. it kind of 
> works here, no guarantee, not even "I think it works") to download the 
> patches. It parses the patches.html in a very rough Way. I mean 
> "DownloadAllPatches".
> 
> Also, the generated series file must be edited: it appends the new patch list, 
> so if you use it as-is it has duplicate patches and won't work.

BlaisorBlade,

I've modified your DownloadAllPatches script a bit, and thought you 
might want the changes as well.  This version doesn't require editing 
for whatever versions are on the page (now auto-detects), rewrites the 
series file, and is quieter.

Frank
---------------------------------------------------------------------------
Frank Sorenson - KD7TZK
Systems Manager, Computer Science Department
Brigham Young University
frank@tuxrocks.com

[-- Attachment #2: DownloadAllPatches --]
[-- Type: text/plain, Size: 818 bytes --]

#!/usr/bin/perl -w

$| = 1;

$hostName = "user-mode-linux.sourceforge.net";
$host = $hostName;

print "Downloading latest patchlist\n";
system("wget -N -q http://$host/patches.html");

$KernelVer = 'none';

open PATCHES, "patches.html";
while (<PATCHES>)
{
	if (/name="(2.[^"]+)"/)
	{
		$KernelVer = $1;
		print "Kernel " . $KernelVer . "\n";
		$outDir = $KernelVer;
		mkdir $KernelVer;

		open PATCHLIST, "> $KernelVer-series";
		$currDate = `date`;
      chomp($currDate);
		print PATCHLIST "#\n#Downloading from Jeff Dike web-site on " . $currDate . "\n#\n";
	}

	next if ($KernelVer eq 'none');

	/href="(work[^"]+)"\>\s*([\w-]+)\<\/a\>/ or next;
	$url = "http://$host/$1";
	$name = "$2.patch";

	print PATCHLIST "$name\n";

	print "...patch $name\n";
	system("cd $outDir && http_proxy= wget -N -q -t 10 $url");
}

  reply	other threads:[~2004-11-29 22:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-08 16:35 [uml-devel] Inconsistency in incremental patches 2.6.9 bodo.stroesser
2004-10-12 23:43 ` [uml-devel] " Jeff Dike
2004-10-13 16:50   ` Bodo Stroesser
2004-10-13 18:08     ` Auto-updating Jeff Dike tree (was: [uml-devel] Re: Inconsistency in incremental patches 2.6.9) BlaisorBlade
2004-11-29 22:09       ` Frank Sorenson [this message]
2004-11-29 22:38         ` [uml-devel] Re: Auto-updating Jeff Dike tree Blaisorblade

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41AB9E02.9050400@tuxrocks.com \
    --to=frank@tuxrocks.com \
    --cc=bodo.stroesser@fujitsu-siemens.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox