]> git.lyx.org Git - features.git/commitdiff
fix initialization before BEGIN block
authorJosé Matox <jamatos@lyx.org>
Mon, 3 Sep 2001 22:17:18 +0000 (22:17 +0000)
committerJosé Matox <jamatos@lyx.org>
Mon, 3 Sep 2001 22:17:18 +0000 (22:17 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2672 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/reLyX/reLyX.in

index 05238b2c15a085c2acd0b840d97977419b322167..9bbf93b0608f9e696761c532429b54761aee687c 100644 (file)
@@ -1,3 +1,6 @@
+2001-09-03  Yves Bastide  <stid@libd-pc11.univ-bpclermont.fr>
+       * reLyX/reLyX.in: fix initialization before BEGIN block.
+
 2001-09-02  Dekel Tsur  <dekelts@tau.ac.il>
 
        * Makefile.am (pkgdata_DATA): Add symbols file.
index 2a4773f22582ecf689489083ac00c4a7b6c4a9dc..3ab57baad6f4b1d919696c370f0e2bf4a5f396da 100644 (file)
@@ -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