head	1.1;
access;
symbols
	HRS_XML_CLEANUP:1.1
	HRS_XML_CLEANUP_PRE:1.1
	EMILYBOYD_REDESIGN:1.1
	PRE_REDESIGN:1.1
	XML_XSL_XP:1.1.0.2
	XML_XSL_XP_BP:1.1;
locks; strict;
comment	@# @;


1.1
date	2000.01.05.15.34.15;	author phantom;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Add new directory: www/ru/ports
@
text
@#!/bin/sh
# Copyright (c) June 1998 Wolfram Schneider <wosch@@FreeBSD.ORG>, Berlin.
#
# packages - create a sorted list of precompiled packages which
#            are available at the FreeBSD FTP Server.
#
# $FreeBSD$
# The FreeBSD Russian Documentation Project
# Original revision: 1.7

PATH=/bin:/usr/bin:/usr/local/bin; export PATH

release='packages-stable';
url="ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/$release/All/"

temp=_lynx$$

if lynx -source "$url" > $temp || ( sleep 300; lynx -source "$url" > $temp ) || ( sleep 300; lynx -source "$url" > $temp )
then
    perl -ne 'print $1, "\n" if m%href="([^"]+)"%oi' < $temp |
    perl -npe  's%.*/%%' | sort | grep -v '^\.\.$'
    rm -f $temp
else
	rm -f $temp
	exit 1
fi
@
