mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
f6fd84cfb5
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
9 lines
111 B
Bash
9 lines
111 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
|
|
case " $@ " in
|
|
*" --version "*) echo "m4 (GNU M4) 1.4.18" ;;
|
|
*) exec m4 -g $@ ;;
|
|
esac
|