diff options
author | Rob Landley <rob@landley.net> | 2012-12-23 00:37:42 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2012-12-23 00:37:42 -0600 |
commit | 7a78d92da70d24947fa9e828a960658ea32b74e7 (patch) | |
tree | f9965b54c26152b44f8ae09f9defedf4bf44404e | |
parent | 7d01b3180735273710d63bd58b90748f4ecf21da (diff) | |
download | toybox-7a78d92da70d24947fa9e828a960658ea32b74e7.tar.gz |
Update mkstatus.py, roadmap.html, and status.html.
-rwxr-xr-x | scripts/mkstatus.py | 32 | ||||
-rwxr-xr-x | www/roadmap.html | 4 | ||||
-rwxr-xr-x | www/status.html | 16 |
3 files changed, 31 insertions, 21 deletions
diff --git a/scripts/mkstatus.py b/scripts/mkstatus.py index 6c24d1a1..51adc2cd 100755 --- a/scripts/mkstatus.py +++ b/scripts/mkstatus.py @@ -2,22 +2,32 @@ 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) -for i in blob.stdout.read().split("\n"): - if not i: continue - i=i.split() - stuff[i[0]]=i[1:] +def readit(args): + ret={} + arr=[] + blob=subprocess.Popen(args, stdout=subprocess.PIPE, shell=False) + for i in blob.stdout.read().split("\n"): + if not i: continue + i=i.split() + ret[i[0]]=i[1:] + arr.extend(i) + return ret,arr -stuff['toolbox'] +stuff,blah=readit(["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"]) + +blah,toystuff=readit(["./toybox"]) reverse={} for i in stuff: for j in stuff[i]: - try: - reverse[j].append(i) - except: - reverse[j]=[i] + try: reverse[j].append(i) + except: reverse[j]=[i] + +for i in toystuff: + try: + if ("ready" in reverse[i]) or ("pending" in reverse[i]): continue + except: pass + print i pending=[] done=[] diff --git a/www/roadmap.html b/www/roadmap.html index ea705fff..d478b283 100755 --- a/www/roadmap.html +++ b/www/roadmap.html @@ -309,8 +309,8 @@ setprop smd start stop top uptime vmstat watchprops wipe <blockquote><b> <span id=request> freeramdisk getty halt hexdump hwclock klogd modprobe ping ping6 pivot_root -poweroff sfdisk sudo syslogd taskset telnet telnetd tracepath traceroute unzip -usleep vconfig zip free login modinfo unshare netcat help +poweroff rev sfdisk sudo syslogd taskset telnet telnetd tracepath traceroute +unzip usleep vconfig zip free login modinfo unshare netcat help w </span> </b></blockquote> diff --git a/www/status.html b/www/status.html index e5dd3e5c..2e9e5732 100755 --- a/www/status.html +++ b/www/status.html @@ -12,27 +12,27 @@ <h3><u>These commands are reasonably finished</u>:</h3> <blockquote><b> <span id=ready> -basename cal cat catv chgrp chmod chown chroot chvt cksum clear cmp comm count -df dirname dmesg dos2unix echo env false killall link logname ls lsmod mkdir -mkfifo mkswap mktemp mountpoint nice nohup od oneit pwd realpath seq setsid +basename cal cat catv chgrp chmod chown chvt cksum clear cmp comm count +df dirname dmesg dos2unix echo env false gethostname killall link logname ls +lsmod md5sum mkdir +mkfifo mkswap mktemp nice nohup od oneit pwd realpath rev rm seq setsid sha1sum sleep sort swapoff swapon sync tac taskset tee true truncate tty uniq -unix2dos unlink usleep vmstat wc which whoami yes +unix2dos unlink usleep wc which whoami yes </span> </b></blockquote> <h3><u>These commands are implemented but have pending todo items remaining:</u></h3> <blockquote><b> <span id=pending> -bzcat bunzip2 cp date du 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 +bzcat bunzip2 chroot cp cut date du expand free head help hostname id insmod kill ln login mdev +mknod modinfo mountpoint mv nc netcat passwd patch pidof printenv readlink rmdir +rmmod switch_root tail touch uname unshare uptime vconfig vmstat w who xargs </span> </b></blockquote> <h3><u>Work on these is underway, but not usable yet:</u></h3> <blockquote><b> bzip2 mke2fs more mount umount losetup sed tar sh grep/egrep/fgrep -switch_root </blockquote></b> <p>See <a href="todo.txt">the todo list</a> for details.</p> |