Files
mercury/tools/make_arena
Zoltan Somogyi 47a1a02a92 Add vim modelines to most tools.
tools/add_cont_lines:
tools/appears:
tools/assemble:
tools/avg_frame_size:
tools/build_srcdist:
tools/cleanint:
tools/compare_frame_sizes:
tools/configure_mingw_cross:
tools/cont:
tools/ctor_rep_stats:
tools/cur_param:
tools/dd_speedtest:
tools/divide:
tools/extract_dd_stats:
tools/file_name_translation_stats:
tools/frame_sizes:
tools/gdbrun:
tools/half:
tools/info_stats.awk:
tools/linear:
tools/lmc.in:
tools/mai_stats:
tools/make_arena:
tools/next_param:
tools/not:
tools/optstages:
tools/type_ctor_stats:
    Add vim mode lines. Replace tabs with spaces.
2021-04-27 03:54:27 +10:00

34 lines
685 B
Bash
Executable File

#!/bin/sh
# vim: ft=sh ts=4 sw=4 et
#
# Create and populate an arena directory for use in speed tests.
if test ! -d boehm_gc
then
echo "make_arena should be executed at the top level of a workspace"
exit 1
fi
if test -d arena
then
echo "make_arena: arena directory already exists"
exit 1
fi
mkdir arena
# Copy all the compiler source files into the arena.
cp compiler/*.m arena
# Copy the interface files and possibly optimization files they will need.
for dir in library mdbcomp compiler
do
cp $dir/*.int* arena
cp $dir/*.*opt arena > /dev/null 2>&1
done
# Copy all the auxiliary files.
cp compiler/Mercury.modules compiler/Mercury.options arena
exit 0