#!/usr/bin/php Index($full, $list, $year, $month); exit(0); function Usage($err = "") { if ($err != "") { print $err . "\n\n"; } print "Usage:\n"; print " archives.php [-l list] [-f | [-y year -m month]]\n"; print " -l = specify list. If not set, all lists are indexed.\n"; print " -f = perform full index.\n"; print " -y year -m month = index specified year and month\n"; print " If neither -f or -y/-m is specified, incremental indexing will be done.\n"; exit(1); } ?>