git: 9front

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