/usr/share/pennmush/game/txt/compose.sh is in pennmush-common 1.8.2p8-1.1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #!/bin/sh
#
# compose.sh: a shell script for putting together help.txt, etc.
#
# Usage: compose.sh <directory>
# Example: compose.sh help
#
# This script calls index-files.pl
#
# By Alan Schwartz (Javelin/Paul)
#
# These come from Configure
perl=/usr/bin/perl
test=test
cat=/bin/cat
rm=/bin/rm
echo=/bin/echo
# This process can eat CPU, so uncomment if you want to be nice
#/etc/renice +4 $$
# What subdirectories should we be processing?
dir=$1
if $test ! -d $dir; then
$echo "Usage: compose.sh <directory>"
exit 0
fi
index_args=$2
# Ok, let's do 'em:
cd $dir
# Remove the old index
$rm -f index.$dir
# Build a new index, and tack it on.
$echo Building index for $dir...
if test -f $perl; then
$cat *.$dir | tee ../$dir.txt | $perl ../index-files.pl $index_args > index.$dir
$cat index.$dir >> ../$dir.txt
else
$cat *.$dir > ../$dir.txt
fi
cd ..
$echo Done.
$echo Remember to use @readcache if the mush is currently running.
|