aboutsummaryrefslogtreecommitdiff
path: root/scripts/mkstatus.py
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-07-21 23:58:40 -0500
committerRob Landley <rob@landley.net>2012-07-21 23:58:40 -0500
commit8f90d3aa019ff89e19e0977c22be8b73c92109a3 (patch)
tree4509e75c36ed6b1f4dbe8d632d0265553dead956 /scripts/mkstatus.py
parent31f49e7968db5d0d569513992baa6d25dde8aa58 (diff)
downloadtoybox-8f90d3aa019ff89e19e0977c22be8b73c92109a3.tar.gz
More web page roadmap/status update stuff.
Diffstat (limited to 'scripts/mkstatus.py')
-rwxr-xr-xscripts/mkstatus.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/mkstatus.py b/scripts/mkstatus.py
index a50026c5..2b4412f1 100755
--- a/scripts/mkstatus.py
+++ b/scripts/mkstatus.py
@@ -3,12 +3,15 @@
import subprocess,sys
stuff={}
-blob=subprocess.Popen(["sed","-n", 's/<span id=\\([a-z]*\\)>/\\1 /;t good;d;:good;h;:loop;n;s@</span>@@;t out;H;b loop;:out;g;s/\\n/ /g;p', "www/roadmap.html", "www/status.html"], stdout=subprocess.PIPE, shell=False)
+blob=subprocess.Popen(["sed","-n", 's/<span id=\\([a-z_]*\\)>/\\1 /;t good;d;:good;h;:loop;n;s@</span>@@;t out;H;b loop;:out;g;s/\\n/ /g;p', "www/roadmap.html", "www/status.html"], stdout=subprocess.PIPE, shell=False)
for i in blob.stdout.read().split("\n"):
if not i: continue
i=i.split()
stuff[i[0]]=i[1:]
+stuff['toolbox'].extend(stuff['toolbox_std'])
+del stuff['toolbox_std']
+
reverse={}
for i in stuff:
for j in stuff[i]:
@@ -30,13 +33,14 @@ for i in blah:
if "posix" in reverse[i]: out='[<a href="http://opengroup.org/onlinepubs/9699919799/utilities/%s.html">%s</a>]' % (i,out)
elif "lsb" in reverse[i]: out='&lt;<a href="http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/%s.html">%s</a>&gt;' % (i,out)
elif "development" in reverse[i]: out='(<a href="http://linux.die.net/man/1/%s">%s</a>)' % (i,out)
+ elif "request" in reverse[i]: out='<a href="http://linux.die.net/man/1/%s">%s</a>' % (i,out)
elif "toolbox" in reverse[i]: out='{%s}' % out
elif "ready" in reverse[i]: pass
else: sys.stderr.write("unknown %s %s\n" % (i, reverse[i]))
if "ready" in reverse[i] or "pending" in reverse[i]:
- out='<strike>%s</strike>' % out
done.append(out)
+ out='<strike>%s</strike>' % out
else: pending.append(out)
outfile.write(out+"\n")