#! /bin/ksh # SCORES=/n/netrek/lib/tools/scores OUT=wormhole.html MKHD=/n/netrek/public_html/mkhd cd /n/netrek/public_html cat "header" > $OUT /bin/date >> $OUT cat "first_menu" >> $OUT cat "footer" >> $OUT $MKHD "Conquers" > conquer.html cat /n/netrek/lib/.conquer >> conquer.html echo "" >> conquer.html $MKHD "Best Players in Order:" > players.html $SCORES a >> players.html echo "" >> players.html $MKHD "Top Offense Players:" > offense.html $SCORES o >> offense.html echo "" >> offense.html $MKHD "Top Defense Players:" > defense.html $SCORES d >> defense.html echo "" >> players.html $MKHD "Players with Best Planet Rating:" > planets.html $SCORES p >> planets.html echo "" >> planets.html $MKHD "Players with Best Bombing Rating:" > bombing.html $SCORES b >> bombing.html echo "" >> bombing.html $MKHD "Best Overall Players:" > total.html $SCORES t >> total.html echo "" >> total.html $MKHD "Best StarBases:" > starbase.html $SCORES s >> starbase.html echo "" >> starbase.html $MKHD "Best Players by DI:" > DI.html $SCORES D >> DI.html echo "" >> DI.html $MKHD "Best players by Hours:" > hours.html $SCORES h >> hours.html echo "" >> hours.html $MKHD "Message of The Day:" > motd.html cat /n/netrek/lib/.motd >> motd.html echo "" >> motd.html chmod 644 motd.html $MKHD "Features File:" > features.html cat /n/netrek/lib/.features >> features.html echo "" >> features.html chmod 644 motd.html $MKHD "System Default File:" > sysdef.html cat /n/netrek/lib/.sysdef >> sysdef.html echo "" >> sysdef.html chmod 644 sysdef.html # #usage: scores [mode] #Modes: #a - print best players in order #o - list players with best offense #d - list players with best defense #p - list players with best planet rating #b - list players with best bombing rating #t - list players with best total ratings #s - list best starbase players # Note: for modes [aodpbs], players with less than 1 hour # or who haven't played for four weeks are omitted #n - print best players in order, showing std. deviations #c - print best players in order, no time cuts #r - list all players, hours, and ratings (no order) #A - list entire database in ascii form (for use with newscores) #T - print rough number of seconds of play time #O - print players who haven't logged in for 4 weeks #D - list players by DI #h - list players by hours #none: list all players, and their totals