git: 9front

ref: 8d0d2ec80f06f3d7d8ba44313cd08eaef5d9b5d1
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'