Files
mercury/scripts/prepare_tmp_dir_grade_part
Zoltan Somogyi d124cad510 Reduce the amount of clutter on mgnuc command lines by moving arguments that
Estimated hours taken: 4
Branches: main

Reduce the amount of clutter on mgnuc command lines by moving arguments that
are always the same for a given directory into a file that is always consulted
by mgnuc in the current directory.

scripts/mgnuc.in:
	Always include as C compiler arguments the contents of a file named
	.mgnuc_copts in the current directory, if it exists. (It is named
	.mgnuc_copts instead of .mgnuc_opts because it may not contain
	general mgnuc options, such as --no-mercury-stdlib-dir.)

Mmake.workspace:
	Comment out the additions of search paths to CFLAGS.

*/Mmakefile:
	Delete the additions of search paths to CFLAGS.

*/.mgnuc_copts:
	New files containing the directory-specific search paths, and in some
	cases the required macro definitions. These replace what was taken out
	of Mmake.workspace and */Mmakefile. In some cases, the old search paths
	included inappropriate directories; the .mgnuc_copt files don't.

tests/.mgnuc_copts.ws:
	New files containing the directory-specific search paths; bootcheck
	makes tests/.mgnuc_copts from it.

*/.nocopyright:
	Don't require copyright notices in .mgnuc_copts files.

tools/bootcheck:
	Copy the various .mgnuc_copts files from the stage1 to stages 2 and 3.
	They aren't needed in stage3 right now, but that may change.

	Create tests/.mgnuc_copts.

browser/util.m:
	Delete an unused and inappropriate #include.

scripts/Mmake.rules:
	Use a single invocation of mkdir -p to create all subdirectories
	needed by Java. Update a piece of documentation.

scripts/Mmakefile:
	Reorganize the process of invoking config.status to avoid invoking
	it on inappropriate files, and to ensure the right permissions
	on the files it is invoked on.

scripts/prepare_tmp_dir_grade_part:
	Copy the .mgnuc_copts files when populating tmp_dir.
2005-05-20 06:15:28 +00:00

60 lines
2.0 KiB
Bash
Executable File

#!/bin/sh
#---------------------------------------------------------------------------#
# Copyright (C) 2005 The University of Melbourne.
# This file may only be copied under the terms of the GNU General
# Public License - see the file COPYING in the Mercury distribution.
#---------------------------------------------------------------------------#
rm -fr tmp_dir/boehm_gc
rm -fr tmp_dir/runtime
rm -fr tmp_dir/trace
rm -fr tmp_dir/library
rm -fr tmp_dir/mdbcomp
rm -fr tmp_dir/browser
mkdir tmp_dir/boehm_gc
mkdir tmp_dir/boehm_gc/Mac_files
mkdir tmp_dir/boehm_gc/cord
mkdir tmp_dir/boehm_gc/include
mkdir tmp_dir/boehm_gc/include/private
cp boehm_gc/Makefile* tmp_dir/boehm_gc
cp boehm_gc/Mmake* tmp_dir/boehm_gc
cp boehm_gc/ac* tmp_dir/boehm_gc
cp boehm_gc/*.[chsS] tmp_dir/boehm_gc
cp boehm_gc/Mac_files/*.[ch] tmp_dir/boehm_gc/Mac_files
cp boehm_gc/cord/*.[ch] tmp_dir/boehm_gc/cord
cp boehm_gc/include/*.[ch] tmp_dir/boehm_gc/include
cp boehm_gc/include/private/*.[ch] tmp_dir/boehm_gc/include/private
mkdir tmp_dir/runtime
mkdir tmp_dir/runtime/machdeps
cp runtime/Mmake* tmp_dir/runtime
cp runtime/.mgnuc* tmp_dir/runtime
cp runtime/*.in tmp_dir/runtime
cp runtime/*.[ch] tmp_dir/runtime
cp runtime/*.il tmp_dir/runtime
cp runtime/machdeps/*.h tmp_dir/runtime/machdeps
mkdir tmp_dir/trace
cp trace/Mmake* tmp_dir/trace
cp trace/.mgnuc* tmp_dir/trace
cp trace/*.[ch] tmp_dir/trace
mkdir tmp_dir/library
cp library/Mmake* tmp_dir/library
cp library/Mercury.* tmp_dir/library
cp library/.mgnuc* tmp_dir/library
cp library/*FLAGS* tmp_dir/library
cp library/print_extra_inits tmp_dir/library
cp library/library_strong_name.sn tmp_dir/library
cp library/*.m tmp_dir/library
mkdir tmp_dir/mdbcomp
cp mdbcomp/Mmake* tmp_dir/mdbcomp
cp mdbcomp/Mercury.* tmp_dir/mdbcomp
cp mdbcomp/.mgnuc* tmp_dir/mdbcomp
cp mdbcomp/*FLAGS* tmp_dir/mdbcomp
cp mdbcomp/*.m tmp_dir/mdbcomp
mkdir tmp_dir/browser
cp browser/Mmake* tmp_dir/browser
cp browser/Mercury.* tmp_dir/browser
cp browser/.mgnuc* tmp_dir/browser
cp browser/*FLAGS* tmp_dir/browser
cp browser/*.m tmp_dir/browser
exit 0