]> git.lyx.org Git - lyx.git/blobdiff - lib/reLyX/reLyX.in
makefile cleanup, and avoid some warnings
[lyx.git] / lib / reLyX / reLyX.in
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