=================================================================== RCS file: /cvs/openbsd/update_openbsd/update_openbsd,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- openbsd/update_openbsd/update_openbsd 2008/11/19 22:38:00 1.14 +++ openbsd/update_openbsd/update_openbsd 2008/11/19 23:02:38 1.15 @@ -1,5 +1,5 @@ #!/bin/sh -# $RedRiver: update_openbsd,v 1.13 2008/11/19 22:35:56 andrew Exp $ +# $RedRiver: update_openbsd,v 1.14 2008/11/19 22:38:00 andrew Exp $ installed_sets() { local misc=/usr/share/doc/README @@ -30,11 +30,23 @@ if [ X"ftp" == X"${_proto}" ]; then echo "ls base*.tgz" | ${FTP_CMD} ${FTP}/ | awk '{ print $9 }' + elif [ X"http" == X"${_proto}" ]; then - ${FTP_CMD} -V -o - ${FTP}/ | grep '"base[0-9][0-9].tgz' | sed -e 's/.*\(base..\.tgz\).*/\1/' + ${FTP_CMD} -V -o - ${FTP}/ | + awk '/[^x]base[0-9][0-9]*\.tgz/ { + sub("^.*base","base"); + sub("\.tgz.*",".tgz"); + print $0; + }' + + elif [ X"scp" == X"${_proto}" ]; then + echo SCP is not yet supported >&2 + return 2 + else echo Unsupported FTP ${FTP} >&2 return 2 + fi }