From 2365844d2ecf00c6acbedc045ba8fe1179537a9b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Mon, 3 Sep 2001 22:17:18 +0000 Subject: [PATCH] fix initialization before BEGIN block git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2672 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/ChangeLog | 3 +++ lib/reLyX/reLyX.in | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ChangeLog b/lib/ChangeLog index 05238b2c15..9bbf93b060 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,6 @@ +2001-09-03 Yves Bastide + * reLyX/reLyX.in: fix initialization before BEGIN block. + 2001-09-02 Dekel Tsur * Makefile.am (pkgdata_DATA): Add symbols file. diff --git a/lib/reLyX/reLyX.in b/lib/reLyX/reLyX.in index 2a4773f225..3ab57baad6 100644 --- a/lib/reLyX/reLyX.in +++ b/lib/reLyX/reLyX.in @@ -14,11 +14,13 @@ $^W = 1; # same as 'perl -w' use vars qw($lyxdir $lyxname); my (@maybe_dir); -my $mainscript = "reLyXmain.pl"; +my $mainscript; my $relyxdir; # Do this in a BEGIN block so it's done before the 'use lib' below BEGIN{ +# Variables may not be assigned before the BEGIN block +$mainscript = "reLyXmain.pl"; # This points to LyX library dir, e.g. /usr/local/share/lyx $lyxdir = "@LYX_DIR@"; # This is just "." if you compiled from the source directory -- 2.39.2