shithub: riscv

ref: 1e8c6d3d412ce472d3173a78e285697b71803fb5
dir: /sys/src/cmd/pkg/list/

View raw version
#!/bin/rc

if(~ $#pkgpath 0)
	pkgpath=http://plan9.stanleylieber.com/pkg/$cputype

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