shithub: riscv

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

View raw version
#!/bin/rc

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

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