Mercurial > hg > kdocs
annotate make/functions.sh @ 110:01b77829d010
Lots of stuff bit-rotted in scripts to extract documentation from current kernel sources. De-bit-rot it.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 19 Feb 2011 21:32:24 -0600 |
parents | c27b8c8a1b14 |
children | d8293ee80a4a |
rev | line source |
---|---|
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
1 #!/bin/bash |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
2 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
3 # This file defines functions used by make.sh |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
4 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
5 # Safety check: Only define these functions if WEBDIR and LNXDIR defined. |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
6 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
7 if [ -z "$WEBDIR" ] || [ -z "$LNXDIR" ] |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
8 then |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
9 echo set WEBDIR and LNXDIR |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
10 exit 1 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
11 fi |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
12 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
13 # Update Documentation directory |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
14 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
15 function update_documentation_dir() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
16 { |
86
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
17 rm -rf "$WEBDIR"/Documentation/ |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
18 cp -a "$LNXDIR"/Documentation "$WEBDIR"/Documentation |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
19 # Make the change directory local to this function |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
20 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
21 cd $WEBDIR |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
22 make/docdiridx.py |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 ) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
26 # Clone or update mercurial Linux kernel repository from kernel.org |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
28 function get_git() |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
29 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
30 # Make the chdir local to this function |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
31 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
32 if [ ! -d "$LNXDIR" ] |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
33 then |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
34 echo "Clone Linux kernel repository from kernel.org" |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
35 |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
36 mkdir -p "$LNXDIR" && |
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
37 cd "$LNXDIR" && |
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
38 # hg clone http://kernel.org/hg/linux-2.6 |
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
39 git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 .git --bare && |
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
40 git checkout -f master |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
41 else |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
42 # Update kernel git repository. |
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
43 cd "$LNXDIR" && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
44 echo "Update Linux kernel from kernel.org" && |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
45 git clean -fdx && git checkout -f master && git pull |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
46 fi |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
47 [ $? -ne 0 ] && exit 1 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
48 |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
49 echo "Linux version: $(git describe --abbrev=0)" |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
50 ) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
51 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
52 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
53 function make_htmldocs() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
54 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
55 # Make the chdir local |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
56 ( |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
57 cd "$LNXDIR" && |
110
01b77829d010
Lots of stuff bit-rotted in scripts to extract documentation from current kernel sources. De-bit-rot it.
Rob Landley <rob@landley.net>
parents:
105
diff
changeset
|
58 make -j 4 htmldocs |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
59 ) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
60 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
61 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
62 function make_htmlnochunks() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
63 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
64 # Make the chdir local |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
65 ( |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
66 cd "$LNXDIR" && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
67 # Probably redundant, but just in case... |
110
01b77829d010
Lots of stuff bit-rotted in scripts to extract documentation from current kernel sources. De-bit-rot it.
Rob Landley <rob@landley.net>
parents:
105
diff
changeset
|
68 make -j 4 xmldocs && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
69 cd Documentation/DocBook && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
70 for i in *.xml |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
71 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
72 echo "Converting $i" |
110
01b77829d010
Lots of stuff bit-rotted in scripts to extract documentation from current kernel sources. De-bit-rot it.
Rob Landley <rob@landley.net>
parents:
105
diff
changeset
|
73 xmlto --skip-validation xhtml-nochunks $i -o xhtml-nochunks |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
74 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
75 ) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
76 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
77 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
78 function install_htmldocs() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
79 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
80 ( |
86
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
81 rm -rf $WEBDIR/htmldocs |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
82 cd "$LNXDIR"/Documentation/DocBook && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
83 # Install nochunks versions |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
84 mv xhtml-nochunks "$WEBDIR"/htmldocs && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
85 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
86 head -n 2 index.html > "$WEBDIR"/htmldocs/index.html && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
87 echo "<ul>" >> "$WEBDIR"/htmldocs/index.html |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
88 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
89 [ $? -ne 0 ] && exit 1 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
90 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
91 # Install broken-up versions and index.html |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
92 for i in $(ls -p | sed -n 's@/$@@p') |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
93 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
94 mv $i "$WEBDIR"/htmldocs && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
95 echo "<li>(<a href=\"$i\">chunks</a>) (<a href=\"${i}.html\">nochunks</a>) " \ |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
96 >> "$WEBDIR"/htmldocs/index.html && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
97 sed -nr 's@.*<title>(.*)</title>.*@\1@p' ${i}.xml | head -n 1 >> \ |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
98 "$WEBDIR"/htmldocs/index.html && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
99 echo "</li>" >> "$WEBDIR"/htmldocs/index.html |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
100 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
101 [ $? -ne 0 ] && exit 1 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
102 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
103 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
104 cd "$WEBDIR"/htmldocs && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
105 echo "</ul>" >> index.html && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
106 # Work around a bug in xmlto: it puts an incorrect code page into the |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
107 # converted html documents, which produces line noise in the output. |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
108 sed -i -e 's/.*ISO-8859-1.*//' $(find . -name "*.html") |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
109 ) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
110 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
111 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
112 function update_master() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
113 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
114 "$WEBDIR"/make/indexsections.py $WEBDIR/master.idx > $WEBDIR/index.html |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
115 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
116 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
117 function htmlize_menuconfig() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
118 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
119 ( |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
120 cd "$LNXDIR" && |
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
121 LNXTAG="$(git describe --abbrev=0)" |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
122 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
123 rm -rf "$WEBDIR"/menuconfig/ |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
124 mkdir -p "$WEBDIR"/menuconfig && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
125 echo "<html><title>Menuconfig docs for Linux $LNXTAG</title><body><ul>" > \ |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
126 "$WEBDIR"/menuconfig/index.html && |
95
a96c14daa4c7
The kernel changed out from under us a bit, update to work with 2.6.25-pre1.
Rob Landley <rob@landley.net>
parents:
91
diff
changeset
|
127 for i in $(echo arch/*/Kconfig | sort) |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
128 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
129 echo Converting "$i" && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
130 ARCH=$(echo $i | sed -r 's@.*/(.*)/.*@\1@') && |
110
01b77829d010
Lots of stuff bit-rotted in scripts to extract documentation from current kernel sources. De-bit-rot it.
Rob Landley <rob@landley.net>
parents:
105
diff
changeset
|
131 echo "<li><a href=$ARCH.html>$ARCH</a></li>" >> \ |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
132 "$WEBDIR"/menuconfig/index.html && |
110
01b77829d010
Lots of stuff bit-rotted in scripts to extract documentation from current kernel sources. De-bit-rot it.
Rob Landley <rob@landley.net>
parents:
105
diff
changeset
|
133 "$WEBDIR"/make/menuconfig2html.py $i "$WEBDIR/menuconfig" \ |
01b77829d010
Lots of stuff bit-rotted in scripts to extract documentation from current kernel sources. De-bit-rot it.
Rob Landley <rob@landley.net>
parents:
105
diff
changeset
|
134 "$LNXTAG" > "$WEBDIR/menuconfig/$ARCH.html" |
86
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
135 |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
136 [ $? -eq 0 ] || exit 1 |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
137 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
138 ) && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
139 echo "</ul></body></html>" >> "$WEBDIR"/menuconfig/index.html |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
140 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
141 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
142 function mirror_files() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
143 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
144 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
145 cd "$WEBDIR" && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
146 make/mirror.py |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
147 [ $? -ne 0 ] && exit 1 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
148 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
149 cat mirror/ols2002.pdf.gz | gunzip > mirror/ols2002.pdf && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
150 if [ -z "$(find mirror/ols2001 -name "*.pdf")" ] |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
151 then |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
152 mkdir -p mirror/ols2001 && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
153 cd mirror/ols2001 && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
154 wget -r -l 1 -nd http://lwn.net/2001/features/OLS/pdf/pdf/ && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
155 cd ../.. |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
156 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
157 [ $? -ne 0 ] && exit 1 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
158 fi |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
159 |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
160 if [ -z "$(find ols/2010 -name "*.pdf")" ] |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
161 then |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
162 echo "Split ols files" |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
163 mkdir -p ols/{1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010} && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
164 cp mirror/ols2001/*.pdf ols/2001 && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
165 make/splitols.py mirror ols |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
166 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
167 [ $? -ne 0 ] && exit 1 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
168 fi |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
169 ) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
170 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
171 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
172 function find_readmes() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
173 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
174 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
175 rm -rf "$WEBDIR"/readme |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
176 mkdir "$WEBDIR"/readme && |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
177 cd "$LNXDIR" && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
178 make help > "$WEBDIR"/makehelp.txt && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
179 for i in $(find . -name "*[Rr][Ee][Aa][Dd][Mm][Ee]*" | grep -v "Documentation/") |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
180 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
181 OUT=$(echo $i | sed -e 's@\./@@' -e 's@/@-@g') |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
182 cp $i "$WEBDIR"/readme/"$(echo $i | sed -e 's@\./@@' -e 's@/@-@g')" |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
183 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
184 ) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
185 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
186 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
187 function findrfc() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
188 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
189 ( |
86
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
190 > "$WEBDIR"/temp-linuxrfc.txt && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
191 cd "$LNXDIR" || exit 1 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
192 echo -n "Search for RFC references" |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
193 x=0 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
194 # Iterate through *.c and *.h in the Linux source code. |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
195 for i in `find "$LNXDIR" -name "*.[hc]"` |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
196 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
197 # Progress indicator |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
198 x=$[$x+1] |
86
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
199 if [ $x -gt 100 ] |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
200 then |
86
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
201 echo -n . |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
202 x=0 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
203 fi |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
204 # Grep each source file for mention of an RFC, filtering out the more |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
205 # obvious false positives. |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
206 for j in $(grep -io "rfc *[1-9][0-9]*" $i | grep -v " " | grep -v "@rfc822\.org" | sed -r 's/[Rr][Ff][Cc] *([0-9]*)/rfc\1/g') |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
207 do |
86
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
208 echo $i:$j >> "$WEBDIR"/temp-linuxrfc.txt |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
209 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
210 done |
86
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
211 ) && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
212 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
213 # Process the temporary directory into an html file. |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
214 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
215 echo Converting to html... |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
216 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
217 cd "$WEBDIR" || exit 1 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
218 echo "<html><head><title>RFCs used by the Linux kernel</title></head>" |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
219 echo "<ul>" |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
220 for i in $(sed 's/.*://' temp-linuxrfc.txt | sort -u | sort -t c -k 2,2 -n) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
221 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
222 echo '<li><h2><a href="http://tools.ietf.org/html/'$i'">'$i'</a></h2><p>' |
110
01b77829d010
Lots of stuff bit-rotted in scripts to extract documentation from current kernel sources. De-bit-rot it.
Rob Landley <rob@landley.net>
parents:
105
diff
changeset
|
223 for j in $(sed -rn 's@\'"$LNXDIR"/'(.*):'$i'$@\1@p' temp-linuxrfc.txt) |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
224 do |
110
01b77829d010
Lots of stuff bit-rotted in scripts to extract documentation from current kernel sources. De-bit-rot it.
Rob Landley <rob@landley.net>
parents:
105
diff
changeset
|
225 echo '<a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f='"$j"';hb=HEAD">'$j'</a>' |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
226 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
227 echo "</p></li>" |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
228 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
229 echo "</ul></html>" |
86
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
230 ) > "$WEBDIR"/rfc-linux.html && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
231 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
232 # Remove the temporary file |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
233 rm temp-linuxrfc.txt |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
234 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
235 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
236 # Set up for out of tree build of Linux. |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
237 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
238 function setuplinuxtemp() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
239 { |
105
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
240 # Stub this out for now |
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
241 return 0 |
c27b8c8a1b14
Break down and use git instead of hg for upstream kernel source.
Rob Landley <rob@landley.net>
parents:
104
diff
changeset
|
242 |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
243 rm -rf "$LNXDIR"/temp && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
244 mkdir "$LNXDIR"/temp && |
88
41f999d7f077
Disentangle Documentation from temporary linux directory. (Allows the scsi
Rob Landley <rob@landley.net>
parents:
86
diff
changeset
|
245 # Building out of tree conflicts with patching the files, so copy. |
91
559603be1678
Do hard links when creating temporary linux directory. (Patch breaks 'em.)
Rob Landley <rob@landley.net>
parents:
88
diff
changeset
|
246 cp -lr "$LNXDIR"/hg/* "$LNXDIR"/temp && |
88
41f999d7f077
Disentangle Documentation from temporary linux directory. (Allows the scsi
Rob Landley <rob@landley.net>
parents:
86
diff
changeset
|
247 ( |
91
559603be1678
Do hard links when creating temporary linux directory. (Patch breaks 'em.)
Rob Landley <rob@landley.net>
parents:
88
diff
changeset
|
248 cd "$LNXDIR"/temp |
88
41f999d7f077
Disentangle Documentation from temporary linux directory. (Allows the scsi
Rob Landley <rob@landley.net>
parents:
86
diff
changeset
|
249 # Apply patches |
41f999d7f077
Disentangle Documentation from temporary linux directory. (Allows the scsi
Rob Landley <rob@landley.net>
parents:
86
diff
changeset
|
250 for i in "$WEBDIR"/make/patches/*.patch |
41f999d7f077
Disentangle Documentation from temporary linux directory. (Allows the scsi
Rob Landley <rob@landley.net>
parents:
86
diff
changeset
|
251 do |
41f999d7f077
Disentangle Documentation from temporary linux directory. (Allows the scsi
Rob Landley <rob@landley.net>
parents:
86
diff
changeset
|
252 echo $i |
95
a96c14daa4c7
The kernel changed out from under us a bit, update to work with 2.6.25-pre1.
Rob Landley <rob@landley.net>
parents:
91
diff
changeset
|
253 if [ -f "$i" ] |
a96c14daa4c7
The kernel changed out from under us a bit, update to work with 2.6.25-pre1.
Rob Landley <rob@landley.net>
parents:
91
diff
changeset
|
254 then |
a96c14daa4c7
The kernel changed out from under us a bit, update to work with 2.6.25-pre1.
Rob Landley <rob@landley.net>
parents:
91
diff
changeset
|
255 patch -p1 -i $i || exit 1 |
a96c14daa4c7
The kernel changed out from under us a bit, update to work with 2.6.25-pre1.
Rob Landley <rob@landley.net>
parents:
91
diff
changeset
|
256 fi |
88
41f999d7f077
Disentangle Documentation from temporary linux directory. (Allows the scsi
Rob Landley <rob@landley.net>
parents:
86
diff
changeset
|
257 done |
41f999d7f077
Disentangle Documentation from temporary linux directory. (Allows the scsi
Rob Landley <rob@landley.net>
parents:
86
diff
changeset
|
258 |
41f999d7f077
Disentangle Documentation from temporary linux directory. (Allows the scsi
Rob Landley <rob@landley.net>
parents:
86
diff
changeset
|
259 # Do setup we'll need later. |
41f999d7f077
Disentangle Documentation from temporary linux directory. (Allows the scsi
Rob Landley <rob@landley.net>
parents:
86
diff
changeset
|
260 make allnoconfig > /dev/null && |
110
01b77829d010
Lots of stuff bit-rotted in scripts to extract documentation from current kernel sources. De-bit-rot it.
Rob Landley <rob@landley.net>
parents:
105
diff
changeset
|
261 make -j 4 xmldocs |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
262 ) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
263 } |
86
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
264 |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
265 function wait4background() |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
266 { |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
267 # Wait for background task to finish |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
268 while [ $(jobs | wc -l) -ne 0 ] |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
269 do |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
270 sleep 1 |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
271 # Without this next line, bash never notices a change in the number of jobs. |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
272 # Bug noticed in Ubuntu 7.04 |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
273 jobs > /dev/null |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
274 done |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
275 } |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
276 |