* mig.in (libexecdir_rel): Compute with realpath instead of perl. --- Hi,
I tried running mig on a system without Perl ealier with bad results. Perl seems to be used only for functionality that is also provided by GNU coreutils (which is already required, e.g. for dirname). Does it make sense to drop the Perl command in favor of using realpath here? Thanks. David mig.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mig.in b/mig.in index 63e0269..16a9cf2 100644 --- a/mig.in +++ b/mig.in @@ -29,7 +29,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ bindir=@bindir@ libexecdir=@libexecdir@ -libexecdir_rel=$(perl -MFile::Spec -e 'print File::Spec->abs2rel("'"$libexecdir"'","'"$bindir"'")') +libexecdir_rel=$(realpath --relative-to="$bindir" "$libexecdir") bindir_real=$(dirname "$0") bindir_real=$(cd "$bindir_real"/ && pwd) libexecdir=$bindir_real/$libexecdir_rel -- 1.9.3