From 790238df08a6f34033d7a95cf20a0f39e5a58d3b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 24 Jan 2013 01:12:02 +0000 Subject: first attempt at separating scripts (originally in tetex) now maintained in TL from the linked_scripts mechanism git-svn-id: svn://tug.org/texlive/trunk@28922 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/am/script_links.am | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Build/source/texk/am') diff --git a/Build/source/texk/am/script_links.am b/Build/source/texk/am/script_links.am index b7228de97ad..a0378fb4b64 100644 --- a/Build/source/texk/am/script_links.am +++ b/Build/source/texk/am/script_links.am @@ -1,6 +1,6 @@ ## texk/am/script_links.am: Makefile fragment for lua/perl/shell script links. ## -## Copyright (C) 2011, 2012 Peter Breitenlohner +## Copyright (C) 2011-2013 Peter Breitenlohner ## You may freely use, modify and/or distribute this file. ## ## Install/uninstall 'linked scripts' or win32 wrappers: @@ -59,9 +59,17 @@ EXTRA_DIST += ../../build-aux/relpath # We support native builds, multiplatform or not, as well as distro builds. install-links: - @REL=`$(SHELL) $(srcdir)/../../build-aux/relpath '$(DESTDIR)' '$(bindir)' '$(datarootdir)'`; \ + @if test -r "$(srcdir)/../../build-aux/relpath"; then \ + relpath="$(srcdir)/../../build-aux/relpath"; \ + elif test -r "$(srcdir)/../../../build-aux/relpath"; then \ + relpath="$(srcdir)/../../../build-aux/relpath"; \ + else \ + echo 'script_links.am:install-links: could not find relpath script';\ + exit 1; \ + fi; \ + REL=`$(SHELL) $$relpath '$(DESTDIR)' '$(bindir)' '$(datarootdir)'`; \ if test -z "$$REL"; then \ - echo 'unable to compute relative path for linked $(TYPE) scripts' >&2; \ + echo 'script_links.am:install_links: unable to compute relative path for linked $(TYPE) scripts' >&2; \ exit 1; \ fi; \ cd $(DESTDIR)$(bindir) && \ -- cgit v1.2.3