mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-14 13:23:53 +00:00
build_srcdist: new option for specifying tar command
tools/build_srcdist:
Add a new option, -t, that allows the tar command for
use by the tar target to be specified.
This commit is contained in:
@@ -12,6 +12,7 @@ RELEASE_VERSION=$ROTD_VERSION
|
|||||||
CC=gcc
|
CC=gcc
|
||||||
RUN=no
|
RUN=no
|
||||||
PARALLEL=1
|
PARALLEL=1
|
||||||
|
TAR=tar
|
||||||
|
|
||||||
USAGE="\
|
USAGE="\
|
||||||
$0 [options]
|
$0 [options]
|
||||||
@@ -31,9 +32,11 @@ Options:
|
|||||||
Run N jobs in parallel.
|
Run N jobs in parallel.
|
||||||
-c CC
|
-c CC
|
||||||
Use CC as the C compiler.
|
Use CC as the C compiler.
|
||||||
|
-t TAR
|
||||||
|
Use TAR as the archiving utility (default: tar)
|
||||||
"
|
"
|
||||||
|
|
||||||
while getopts "hrv:nc:fj:" OPT; do
|
while getopts "hrv:nc:fj:t:" OPT; do
|
||||||
case "$OPT" in
|
case "$OPT" in
|
||||||
h)
|
h)
|
||||||
echo "$USAGE"
|
echo "$USAGE"
|
||||||
@@ -57,6 +60,9 @@ while getopts "hrv:nc:fj:" OPT; do
|
|||||||
j)
|
j)
|
||||||
PARALLEL=$OPTARG
|
PARALLEL=$OPTARG
|
||||||
;;
|
;;
|
||||||
|
t)
|
||||||
|
TAR=$OPTARG
|
||||||
|
;;
|
||||||
?)
|
?)
|
||||||
echo "$USAGE"
|
echo "$USAGE"
|
||||||
exit 1
|
exit 1
|
||||||
@@ -103,6 +109,6 @@ mercury_cv_bits_per_word=$BITS_PER_WORD \
|
|||||||
mercury_cv_bytes_per_word=$BYTES_PER_WORD \
|
mercury_cv_bytes_per_word=$BYTES_PER_WORD \
|
||||||
mercury_cv_unboxed_floats=$UNBOXED_FLOATS \
|
mercury_cv_unboxed_floats=$UNBOXED_FLOATS \
|
||||||
sh configure --with-cc="$CC" &&
|
sh configure --with-cc="$CC" &&
|
||||||
mmake GRADE=hlc.gc.pregen MMAKEFLAGS="EXTRA_MCFLAGS='-O5 --opt-space' -j$PARALLEL" tar
|
mmake TAR="$TAR" GRADE=hlc.gc.pregen MMAKEFLAGS="EXTRA_MCFLAGS='-O5 --opt-space' -j$PARALLEL" tar
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user