From 0eef3d6c5ffbbc97f5e2dd5443b6823da94213b5 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 10 May 2013 22:30:38 +0200 Subject: add version switch to dtx --- luaotfload.dtx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'luaotfload.dtx') diff --git a/luaotfload.dtx b/luaotfload.dtx index 75d1221..b3a1304 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -1770,10 +1770,16 @@ loadmodule"auxiliary.lua" --- additionaly high-level functionality (new) \else \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{luaotfload}% - [2013/04/16 v2.2 OpenType layout system] + [2013/05/10 v2.2 OpenType layout system] \RequirePackage{luatexbase} \fi -\RequireLuaModule{luaotfload} +\ifnum\luatexversion<76 + %% here some deprecation warning would be in order + \RequireLuaModule{lualibs} + \RequireLuaModule{luaotfload-legacy} +\else + \RequireLuaModule{luaotfload} +\fi \endinput % \end{macrocode} % \iffalse -- cgit v1.2.3