Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
5a70f6c0
Commit
5a70f6c0
authored
Mar 15, 2002
by
Jeff Garzik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add BK kernel howto text and some helper scripts to
new subdirectory linux/Documentation/BK-usage.
parent
14003981
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
405 additions
and
0 deletions
+405
-0
Documentation/BK-usage/bk-kernel-howto.txt
Documentation/BK-usage/bk-kernel-howto.txt
+275
-0
Documentation/BK-usage/bk-make-sum
Documentation/BK-usage/bk-make-sum
+37
-0
Documentation/BK-usage/cset-to-linus
Documentation/BK-usage/cset-to-linus
+49
-0
Documentation/BK-usage/csets-to-patches
Documentation/BK-usage/csets-to-patches
+44
-0
No files found.
Documentation/BK-usage/bk-kernel-howto.txt
0 → 100644
View file @
5a70f6c0
This diff is collapsed.
Click to expand it.
Documentation/BK-usage/bk-make-sum
0 → 100755
View file @
5a70f6c0
#!/bin/sh -e
# DIR=$HOME/BK/axp-2.5
# cd $DIR
LINUS_REPO
=
$1
DIRBASE
=
`
basename
$PWD
`
{
cat
<<
EOT
Linus, please do a
bk pull http://gkernel.bkbits.net/
$DIRBASE
This will update the following files:
EOT
bk changes
-L
-d
'$unless(:MERGE:){:CSETREV:\n}'
$LINUS_REPO
|
while
read
rev
;
do
bk
export
-tpatch
-r
$rev
done
| diffstat
-p1
2>/dev/null
cat
<<
EOT
through these ChangeSets:
EOT
bk changes
-L
-d
'$unless(:MERGE:){ChangeSet|:CSETREV:\n}'
$LINUS_REPO
|
bk
-R
prs
-h
-d
'$unless(:MERGE:){<:P:@:HOST:> (:D: :I:)\n$each(:C:){ (:C:)\n}\n}'
-
}
>
/tmp/linus.txt
cat
<<
EOT
Mail text in /tmp/linus.txt; please check and send using your favourite
mailer.
EOT
Documentation/BK-usage/cset-to-linus
0 → 100755
View file @
5a70f6c0
#!/usr/bin/perl5.6.1 -w
use strict;
my ($lhs, $rev, $tmp, $rhs, $s);
my @cset_text = ();
my @pipe_text = ();
my $have_cset = 0;
while (<>) {
next if /^---/;
if (($lhs, $tmp, $rhs) = (/^(ChangeSet\@)([^,]+)(, .*)$/)) {
&cset_rev if ($have_cset);
$rev = $tmp;
$have_cset = 1;
push(@cset_text, $_);
}
elsif ($have_cset) {
push(@cset_text, $_);
}
}
&cset_rev if ($have_cset);
exit(0);
sub cset_rev {
my $empty_cset = 0;
open PIPE, "bk export -tpatch -hdu -r $rev | diffstat -p1 2>/dev/null |" or die;
while ($s = <PIPE>) {
$empty_cset = 1 if ($s =~ /0 files changed/);
push(@pipe_text, $s);
}
close(PIPE);
if (! $empty_cset) {
print @cset_text;
print @pipe_text;
print "\n\n";
}
@pipe_text = ();
@cset_text = ();
}
Documentation/BK-usage/csets-to-patches
0 → 100755
View file @
5a70f6c0
#!/usr/bin/perl5.6.1 -w
use strict;
my ($lhs, $rev, $tmp, $rhs, $s);
my @cset_text = ();
my @pipe_text = ();
my $have_cset = 0;
while (<>) {
next if /^---/;
if (($lhs, $tmp, $rhs) = (/^(ChangeSet\@)([^,]+)(, .*)$/)) {
&cset_rev if ($have_cset);
$rev = $tmp;
$have_cset = 1;
push(@cset_text, $_);
}
elsif ($have_cset) {
push(@cset_text, $_);
}
}
&cset_rev if ($have_cset);
exit(0);
sub cset_rev {
my $empty_cset = 0;
system("bk export -tpatch -du -r $rev > /tmp/rev-$rev.patch");
if (! $empty_cset) {
print @cset_text;
print @pipe_text;
print "\n\n";
}
@pipe_text = ();
@cset_text = ();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment