pkg(1): fix for plan9.bell-labs.com; update repository list

This commit is contained in:
stanley lieber 2013-09-18 15:25:18 -04:00
parent 4d9ce0fb3c
commit 25e5507c57
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ source files of packages installed locally.
.br
.B http://bell-labs.co/9front/pkg/386
.br
.B http://ports2plan9.googlecode.com/files
.B http://plan9.bell-labs.com/sources/contrib/staal1978/pkg
.SH SEE ALSO
.IR contrib (1) ,
.IR gzip (1) ,

View file

@ -4,6 +4,6 @@ if(~ $#pkgpath 0)
pkgpath=http://r-36.net/9front/pkg/$cputype
if(~ $pkgpath ftp* http*)
hget $pkgpath | htmlfmt | grep '\.tbz' | sed -e 's/• //g; s/\.tbz.*$//g'
hget $pkgpath | htmlfmt | grep '\.tbz' | awk '{print $NF}' | sed -e 's/\.tbz.*$//g'
if not
ls -p $pkgpath/*.tbz | sed 's/\.tbz.*$//g'