home *** CD-ROM | disk | FTP | other *** search
- #!/usr/local/bin/perl
- require ("find.pl");
- # getdirs - create a text file with directory names
- # to be used with gee - gopher environment editor.
- #
- # Bill Middleton - wjm@feenix.metronet.com
- #
- # configure
- #
- $toplevel="/usr/pub/";
- $dirfilename = "./gopherdirs";
- #
- # end configure
- #
-
- open(DIRS,">$dirfilename");
- &find($toplevel);
-
- sub wanted{
- local($tmp)=$name;
- if(-d $tmp){
- $tmp =~ s/^$toplevel//; # must get rid of $toplevel in full path
- $tmp =~ /\.cap/ && return; # comment this to keep .cap dirs in list
- $tmp =~ /\.index/ && return; # comment this to keep .index dirs in list
- print DIRS "$tmp\n";
- }
- }
- close (DIRS);
-