rm ../Rules.txt.Z ../Rules.txt.uncompressed ../Part*.Z

cd Cmds
ncmds=`ls | wc -l`
half=`expr $ncmds / 2`
other=`expr $ncmds - $half`

(
echo "
Olympia rules, part 4 of 5
==========================

         Olympia, its rules, documentation and game text are
      Copyright 1991-1994 by Rich Skrenta.  All rights reserved.


This file contains descriptions of the following commands:
"; ls -C `ls | head -$half` | detab | sed -e 's/^/   /'; echo "
"
) > ../80

(
echo "
Olympia rules, part 5 of 5
==========================

         Olympia, its rules, documentation and game text are
      Copyright 1991-1994 by Rich Skrenta.  All rights reserved.


This file contains descriptions of the following commands:
"; ls -C `ls | tail -$other` | detab | sed -e 's/^/   /'; echo "
"
) > ../90

cat `ls | head -$half` > ../81-cmd1
cat `ls | tail -$other` > ../91-cmd2

cd ..

cat 1* > ../Part1
cat 2* 3* 4* > ../Part2
cat 6* 7* > ../Part3

cat 8* > ../Part4
cat 9* > ../Part5

cat [1-9][1-9]* > ../Rules.txt.uncompressed
compress -v ../Part*
compress -v < ../Rules.txt.uncompressed > ../Rules.txt.Z

