mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-17 10:23:46 +00:00
README.cross:
Convert README.cross to markdown.
Rename to README.cross.md.
.nocopyright:
README.MS-Windows:
README.md:
tools/configure_cross:
tools/copy_mercury_binaries:
Update references to README.cross.
70 lines
1.6 KiB
Bash
Executable File
70 lines
1.6 KiB
Bash
Executable File
#!/bin/sh
|
|
# vim: ft=sh ts=4 sw=4 et
|
|
#---------------------------------------------------------------------------#
|
|
# Copyright (C) 2021 The Mercury team.
|
|
# This file may only be copied under the terms of the GNU General
|
|
# Public License - see the file COPYING in the Mercury distribution.
|
|
#---------------------------------------------------------------------------#
|
|
#
|
|
# This script copies the binaries from one Mercury installation to another.
|
|
# Please see README.cross.md for details.
|
|
#
|
|
#---------------------------------------------------------------------------#
|
|
|
|
set -eu
|
|
|
|
if test $# != 2
|
|
then
|
|
echo "usage: copy_mercury_binaries SRC DEST"
|
|
echo "where SRC and DEST are paths to Mercury installations."
|
|
exit 1
|
|
fi
|
|
|
|
srcdir=$1/bin
|
|
destdir=$2/bin
|
|
|
|
if ! test -f "$srcdir/mercury_compile"
|
|
then
|
|
echo "Missing $srcdir/mercury_compile"
|
|
exit 1
|
|
fi
|
|
if ! test -d "$destdir"
|
|
then
|
|
echo "$destdir is not a directory."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Copying files from $srcdir to $destdir..."
|
|
|
|
for file in \
|
|
info_to_mdb \
|
|
mcov \
|
|
mdemangle \
|
|
mdice \
|
|
mdprof_cgi \
|
|
mdprof_create_feedback \
|
|
mdprof_dump \
|
|
mdprof_report_feedback \
|
|
mdprof_test \
|
|
mercury_compile \
|
|
mercury_profile \
|
|
mfiltercc \
|
|
mfilterjavac \
|
|
mkinit \
|
|
mslice \
|
|
mtc_diff \
|
|
mtc_union
|
|
do
|
|
# The deep profiler binaries are not always installed.
|
|
if test -f "$srcdir/$file"
|
|
then
|
|
# Make a backup just in case.
|
|
if test -e "$destdir/$file"
|
|
then
|
|
mv "$destdir/$file" "$destdir/$file.bak"
|
|
fi
|
|
|
|
cp -v "$srcdir/$file" "$destdir"
|
|
fi
|
|
done
|