Mercurial > hg > kdocs
annotate make/functions.sh @ 86:ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
--long. (Must occur in that order if you supply both.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Wed, 07 Nov 2007 02:54:10 -0600 |
parents | 13a980b307f8 |
children | 41f999d7f077 |
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/ |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
18 cp -a "$LNXDIR"/hg/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 for i in make/patches/*.patch |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
23 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
24 echo $i |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
25 patch -p1 -i $i || exit 1 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
26 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
27 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
|
28 ) |
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 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
31 # 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
|
32 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
33 function get_hg() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
34 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
35 # 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
|
36 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
37 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
|
38 then |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
39 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
|
40 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
41 mkdir -p "$LNXDIR"/hg && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
42 cd "$LNXDIR"/hg && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
43 hg clone http://kernel.org/hg/linux-2.6 hg |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
44 else |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
45 # Update kernel mercurial repository. |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
46 cd "$LNXDIR"/hg && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
47 echo "Update Linux kernel 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
|
48 hg pull -u |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
49 fi |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
50 [ $? -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
|
51 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
52 echo "Linux version: $(hg tags | head -n 2 | tail -n 1 | awk '{print $1}')" |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
53 ) |
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 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
56 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
|
57 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
58 # 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
|
59 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
60 cd "$LNXDIR"/temp && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
61 make -j 2 htmldocs |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
62 ) |
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 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
65 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
|
66 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
67 # 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
|
68 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
69 cd "$LNXDIR"/temp && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
70 # Probably redundant, but just in case... |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
71 make -j 2 xmldocs && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
72 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
|
73 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
|
74 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
75 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
|
76 xmlto xhtml-nochunks $i -o xhtml-nochunks |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
77 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
78 ) |
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 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
81 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
|
82 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
83 ( |
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
|
84 rm -rf $WEBDIR/htmldocs |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
85 cd "$LNXDIR"/temp/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
|
86 # 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
|
87 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
|
88 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
89 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
|
90 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
|
91 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
92 [ $? -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
|
93 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
94 # 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
|
95 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
|
96 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
97 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
|
98 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
|
99 >> "$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 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
|
101 "$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
|
102 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
|
103 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
104 [ $? -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
|
105 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
106 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
107 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
|
108 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
|
109 # 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
|
110 # 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
|
111 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
|
112 ) |
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 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
115 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
|
116 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
117 "$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
|
118 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
119 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
120 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
|
121 { |
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 cd "$LNXDIR"/hg && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
124 LNXTAG="$(hg tags | head -n 2 | tail -n 1 | awk '{print $1}')" |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
125 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
126 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
|
127 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
|
128 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
|
129 "$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
|
130 for i in $(find arch -maxdepth 2 -name Kconfig | sort) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
131 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
132 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
|
133 ARCH=$(echo $i | sed -r 's@.*/(.*)/.*@\1@') && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
134 echo "<li><a href=${ARCH}.html>${ARCH}</a></li>" >> \ |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
135 "$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
|
136 "$WEBDIR"/make/menuconfig2html.py $i "$WEBDIR"/menuconfig "$LNXTAG" > \ |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
137 "$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
|
138 |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
139 [ $? -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
|
140 done |
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 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
|
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 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
|
146 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
147 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
148 cd "$WEBDIR" && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
149 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
|
150 [ $? -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
|
151 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
152 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
|
153 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
|
154 then |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
155 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
|
156 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
|
157 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
|
158 cd ../.. |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
159 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
160 [ $? -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
|
161 fi |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
162 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
163 if [ -z "$(find ols/2007 -name "*.pdf")" ] |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
164 then |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
165 echo "Split ols files" |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
166 mkdir -p ols/{1999,2000,2001,2002,2003,2004,2005,2006,2007} && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
167 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
|
168 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
|
169 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
170 [ $? -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
|
171 fi |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
172 ) |
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 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
|
176 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
177 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
178 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
|
179 mkdir "$WEBDIR"/readme && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
180 cd "$LNXDIR"/hg && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
181 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
|
182 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
|
183 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
184 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
|
185 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
|
186 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
187 ) |
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 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
190 function findrfc() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
191 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
192 ( |
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
|
193 > "$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
|
194 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
|
195 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
|
196 x=0 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
197 # Iterate through *.c and *.h in the Linux source code. |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
198 for i in `find "$LNXDIR"/hg -name "*.[hc]"` |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
199 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
200 # Progress indicator |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
201 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
|
202 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
|
203 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
|
204 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
|
205 x=0 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
206 fi |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
207 # 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
|
208 # 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
|
209 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
|
210 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
|
211 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
|
212 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
213 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
|
214 ) && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
215 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
216 # 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
|
217 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
218 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
|
219 ( |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
220 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
|
221 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
|
222 echo "<ul>" |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
223 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
|
224 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
225 echo '<li><h2><a href="http://tools.ietf.org/html/'$i'">'$i'</a></h2><p>' |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
226 for j in $(sed -rn 's@\'"$LNXDIR"/hg'(.*):'$i'$@\1@p' 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
|
227 do |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
228 echo '<a href="http://kernel.org/hg/linux-2.6/file/tip/'$j'">'$j'</a>' |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
229 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
230 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
|
231 done |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
232 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
|
233 ) > "$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
|
234 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
235 # 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
|
236 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
|
237 } |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
238 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
239 # 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
|
240 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
241 function setuplinuxtemp() |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
242 { |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
243 if [ ! -d "$WEBDIR"/Documentation ] |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
244 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
|
245 echo "Need Documentation dir first" |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
246 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
|
247 fi |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
248 |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
249 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
|
250 mkdir "$LNXDIR"/temp && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
251 ( cd "$LNXDIR"/hg && |
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
|
252 make allnoconfig O=$LNXDIR/temp > /dev/null && |
83
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
253 # Adjust to use the patched Documentation directory |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
254 ln -s "$WEBDIR"/Documentation "$LNXDIR"/temp && |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
255 # We'll need this later. |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
256 make -j 2 xmldocs |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
257 ) |
13a980b307f8
Largeish rewrite of make.sh, breaking things out into functions. This has the
Rob Landley <rob@landley.net>
parents:
diff
changeset
|
258 } |
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
|
259 |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
260 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
|
261 { |
ca7e38053195
Updates and bug fixes, should work now. Options to make.sh are --nonet and
Rob Landley <rob@landley.net>
parents:
83
diff
changeset
|
262 # 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
|
263 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
|
264 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
|
265 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
|
266 # 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
|
267 # 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
|
268 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
|
269 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
|
270 } |
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 |