shithub: riscv

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

View raw version
#!/bin/rc

if(~ $#pkgpath 0)
	pkgpath=http://pkg.violetti.org/$cputype

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