shithub: riscv

ref: 072c45d4633d5f03e3b79f9c60c3655a6d4a1149
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/\.tbz.*$//g' | awk '{print $NF}'
if not
	ls -p $pkgpath/*.tbz | sed 's/\.tbz.*$//g'