From 37aa821e7bdeb135894ae7ba5a775557c3f6c2d1 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 21 Jul 2012 00:29:27 -0500 Subject: Add status.html and script to calculate it from roadmap info. --- scripts/mkstatus.py | 47 +++++++++++++++++++++++++++++++++++++++++++++++ www/header.html | 2 +- www/status.html | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 1 deletion(-) create mode 100755 scripts/mkstatus.py create mode 100755 www/status.html diff --git a/scripts/mkstatus.py b/scripts/mkstatus.py new file mode 100755 index 00000000..a50026c5 --- /dev/null +++ b/scripts/mkstatus.py @@ -0,0 +1,47 @@ +#!/usr/bin/python + +import subprocess,sys + +stuff={} +blob=subprocess.Popen(["sed","-n", 's//\\1 /;t good;d;:good;h;:loop;n;s@@@;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:] + +reverse={} +for i in stuff: + for j in stuff[i]: + try: + reverse[j].append(i) + except: + reverse[j]=[i] + +pending=[] +done=[] + +outfile=open("www/status.gen", "w") +outfile.write("

All commands

\n") + +blah=list(reverse) +blah.sort() +for i in blah: + out=i + if "posix" in reverse[i]: out='[%s]' % (i,out) + elif "lsb" in reverse[i]: out='<%s>' % (i,out) + elif "development" in reverse[i]: out='(%s)' % (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='%s' % out + done.append(out) + else: pending.append(out) + + outfile.write(out+"\n") + +outfile.write("

\n") + +outfile.write("

TODO

%s

\n" % "\n".join(pending)) +outfile.write("

Done

%s

\n" % "\n".join(done)) diff --git a/www/header.html b/www/header.html index cb4a195c..8698267e 100644 --- a/www/header.html +++ b/www/header.html @@ -14,8 +14,8 @@
  • What is toybox?
  • Design Docs
  • Source walkthrough
  • -
  • TODO list
  • Roadmap
  • +
  • Status
  • Interview
  • Download diff --git a/www/status.html b/www/status.html new file mode 100755 index 00000000..c987cccb --- /dev/null +++ b/www/status.html @@ -0,0 +1,40 @@ + +Toybox Status + +

    How are we doing on implementing stuff so far?

    + +

    Legend: {android} [posix] (development) <lsb> implemented

    + + + +

    The current status of toybox (as of 0.2.1 release):

    + +

    These commands are reasonably finished:

    +
    + +basename cal cat catv chgrp chmod chown chroot chvt cksum clear cmp comm count +df dirname dmesg echo env false killall link logname ls lsmod mkdir mkfifo mkswap mktemp +mountpoint nice nohup od oneit pwd realpath seq setsid sha1sum sleep +sort swapoff swapon sync tac tee true truncate tty uniq unlink vmstat +wc which whoami yes + +
    + +

    These commands are implemented but have pending todo items remaining:

    +
    + +bzcat bunzip2 cp date free head help hostname id insmod kill ln login mdev +mknod modinfo mv nc netcat patch pidof printenv readlink rmdir rmmod tail uname unshare +uptime who xargs + +
    + +

    Work on these is underway, but not usable yet:

    +
    +bzip2 mke2fs more mount umount losetup sed tar sh grep/egrep/fgrep +switch_root +
    + +

    See the todo list for details.

    + + -- cgit v1.2.3