git: 9front

ref: aa2f5f17f52ef838a2352b5eb92bf6b4ebd48815
dir: /sys/src/cmd/pkg/list/

View raw version
#!/bin/rc

if(~ $#pkgpath 0)
	pkgpath=http://r-36.net/9front/pkg/$cputype

if(~ $pkgpath ftp* http*)
	hget $pkgpath | htmlfmt | grep '\.tbz' | sed -e 's/• //g; s/\.tbz.*$//g'
if not
	ls -p $pkgpath/*.tbz | sed 's/\.tbz.*$//g'