>From 910dbc5d6e14dda81b795d6ddaa8763c4c4a1cfc Mon Sep 17 00:00:00 2001 From: Felix Janda Date: Sun, 24 Feb 2013 11:45:32 +0100 Subject: [PATCH 3/3] Fix relative links for lilypond.org Use the environment variable $depth to decide whether to add leading dots to relative urls or not. $depth is set to "." in website.make when building for lilypond.org and unset otherwise. --- scripts/build/create-weblinks-itexi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/create-weblinks-itexi.py b/scripts/build/create-weblinks-itexi.py index e7caa31..7408ab5 100644 --- a/scripts/build/create-weblinks-itexi.py +++ b/scripts/build/create-weblinks-itexi.py @@ -24,7 +24,7 @@ for lang in langdefs.WEB_LANGUAGES: # these links are relative from /website/ on lilypond.org -depth = "../" +depth = os.getenv("depth", "..") + "/" # Get/update node translations ''' -- 1.7.12.4