shithub: riscv

ref: afdf2603d897b247b56f193ad03682f24cae1ce8
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'