1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/Mk/Wrappers/gm4
Baptiste Daroussin f6fd84cfb5 BINARY_WRAPPERS allow to push in front of the PATH wrappers for binaries.
This is useful when 2 tools do provide the same feature, but the configure
scripts do test for some variables which are not in one of the tool.

For example m4 in base is mostly compatible with GNU m4 when called with the -g
arguement. This wrapper allows to use it with build systems that do check for it
calling --version and expecting GNU in the arguments.

Reviewed by:	mat (final discussions on irc)
Differential Revision:	https://reviews.freebsd.org/D21835
2019-10-01 14:33:24 +00:00

9 lines
111 B
Bash

#!/bin/sh
#
# $FreeBSD$
case " $@ " in
*" --version "*) echo "m4 (GNU M4) 1.4.18" ;;
*) exec m4 -g $@ ;;
esac