X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2FreLyX%2FreLyXmain.pl;h=4db42ceb657fb783442f336c2626fb2caed04d4f;hb=fe154c1d62fae758d9cebf85992297f740201881;hp=f2ff40b1134bcc9cf26f53575ced707cd89a672c;hpb=27de1486ca34aaad446adb798d71a77d6f6304da;p=lyx.git diff --git a/lib/reLyX/reLyXmain.pl b/lib/reLyX/reLyXmain.pl index f2ff40b113..4db42ceb65 100644 --- a/lib/reLyX/reLyXmain.pl +++ b/lib/reLyX/reLyXmain.pl @@ -8,7 +8,7 @@ # # This code usually gets called by the reLyX wrapper executable # -# $Id: reLyXmain.pl,v 1.1 1999/09/27 18:44:35 larsbj Exp $ +# $Id: reLyXmain.pl,v 1.4 2001/08/31 07:54:05 jamatos Exp $ # require 5.002; # Perl 5.001 doesn't work. Perl 4 REALLY doesn't work. @@ -27,6 +27,8 @@ use vars qw($opt_c $opt_d $opt_f $opt_h $opt_n $opt_o $opt_p $opt_r $opt_s $dot_lyxdir $Success @File_List + @Suffix_List + $LyXFormat ); use Cwd; # getcwd etc. use Getopt::Std; # read in command-line options @@ -50,8 +52,8 @@ if (!defined($lyxname)) {$lyxname = "lyx"} use vars qw($lyxdir $lyxname); # variables that a user might want to change -my @Suffix_List = '\.(ltx|latex|tex)'; # allowed suffixes for LaTeX file -my $LyXFormat = "2.15"; #What to print in \lyxformat command in .lyx file +@Suffix_List = '\.(ltx|latex|tex)'; # allowed suffixes for LaTeX file +$LyXFormat = "2.15"; #What to print in \lyxformat command in .lyx file my $syntaxname = "syntax.default"; # name of the default syntax file $dot_lyxdir = $ENV{'HOME'} . "/.$lyxname"; # personal .lyx directory @@ -63,7 +65,7 @@ BEGIN{$Success = 0} # # Print welcome message including version info -my $version_info = '$Date: 1999/09/27 18:44:35 $'; # RCS puts checkin date here +my $version_info = '$Date: 2001/08/31 07:54:05 $'; # RCS puts checkin date here $version_info =~ s&.*?(\d+/\d+/\d+).*&$1&; # take out just the date info warn "reLyX, the LaTeX to LyX translator. Revision date $version_info\n\n"; @@ -92,7 +94,7 @@ my $Usage_Long = $Usage_Short . <<"ENDLONGUSAGE"; -o output all LyX files to directory "outputdir" Otherwise, LyX file is created in directory the LaTeX file is in -p translate LaTeX fragments or include files (requires -c) - I.e., files without \documentclass commands + I.e., files without \\documentclass commands -r give reLyX a (list of) regular environment(s) -s give reLyX a (list of) additional syntax file(s) to read