git: 9front

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