git: 9front

ref: cfe6d587c9bf8ba72da73b26eff1c9302b5c317b
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'
if not
	ls -p $pkgpath/*.tbz | sed 's/\.tbz.*$//g'