mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix regex errors in .aux scanning, and other small problems
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@417 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f133142418
commit
f20dd3e30e
12
ChangeLog
12
ChangeLog
@ -1,3 +1,15 @@
|
||||
2000-01-12 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* src/LaTeX.C (scanAux): fix the regular expression used to scan
|
||||
.aux files.
|
||||
(runBibTeX): ditto.
|
||||
|
||||
* autogen.sh: do not use "type -path" (what's that anyway?).
|
||||
|
||||
* src/support/filetools.C (findtexfile): remove extraneous space
|
||||
which caused a kpsewhich warning (at least with kpathsea version
|
||||
3.0).
|
||||
|
||||
2000-01-11 Lars Gullik Bjønnes <larsbj@lyx.org>
|
||||
|
||||
* src/mathed/Makefile.am (noinst_LTLIBRARIES): use .la
|
||||
|
@ -10,7 +10,7 @@ echo -n "Locating GNU m4..."
|
||||
for prog in $M4 gm4 gnum4 m4 ; do
|
||||
case `$prog --version 2>&1` in
|
||||
*GNU*) ok=yes
|
||||
GNUM4=`type -path $prog`
|
||||
GNUM4=$prog
|
||||
echo "found: $GNUM4"
|
||||
break ;;
|
||||
*) ;;
|
||||
@ -61,7 +61,6 @@ if ( $AUTOCONF --version ) </dev/null > /dev/null 2>&1; then
|
||||
echo -n "Building configure... "
|
||||
$AUTOCONF ; ( cd lib/reLyX ; $AUTOCONF )
|
||||
echo "done."
|
||||
echo 'run "./configure ; make"'
|
||||
else
|
||||
echo "autoconf not found -- aborting"
|
||||
exit
|
||||
@ -98,3 +97,7 @@ grep -E "_\(\".*\"\)" `find src -name \*.[hHC]` | \
|
||||
awk 'BEGIN {FS= ":"} {print $1}' | sort -f -d | uniq >> tmppot
|
||||
mv tmppot po/POTFILES.in
|
||||
echo "done"
|
||||
|
||||
echo
|
||||
echo 'run "./configure ; make"'
|
||||
echo
|
||||
|
@ -324,8 +324,8 @@ bool LaTeX::scanAux(DepTable & dep)
|
||||
string aux = ChangeExtension(file, ".aux", true);
|
||||
ifstream ifs(aux.c_str());
|
||||
string token;
|
||||
LRegex reg1("\\\\bibdata{([^}]+)}");
|
||||
LRegex reg2("\\\\bibstyle{([^}]+)}");
|
||||
LRegex reg1("\\\\bibdata\\{([^}]+)\\}");
|
||||
LRegex reg2("\\\\bibstyle\\{([^}]+)\\}");
|
||||
while (getline(ifs, token)) {
|
||||
if (reg1.exact_match(token)) {
|
||||
LRegex::SubMatches sub = reg1.exec(token);
|
||||
@ -379,8 +379,8 @@ bool LaTeX::runBibTeX(string const & f, DepTable & dep)
|
||||
ifstream ifs(f.c_str());
|
||||
string token;
|
||||
bool using_bibtex = false;
|
||||
LRegex reg1("\\\\bibdata{([^}]+)}");
|
||||
LRegex reg2("\\\\bibstyle{([^}]+)}");
|
||||
LRegex reg1("\\\\bibdata\\{([^}]+)\\}");
|
||||
LRegex reg2("\\\\bibstyle\\{([^}]+)\\}");
|
||||
while (getline(ifs, token)) {
|
||||
if (reg1.exact_match(token)) {
|
||||
using_bibtex = true;
|
||||
|
@ -1010,6 +1010,7 @@ string findtexfile(string const & fil, string const & format)
|
||||
|
||||
// No we try to find it using kpsewhich.
|
||||
string kpsecmd = "kpsewhich --format=" + format + " " + OnlyFilename(fil);
|
||||
|
||||
cmdret c = do_popen(kpsecmd);
|
||||
|
||||
lyxerr[Debug::LATEX] << "kpse status = " << c.first << "\n"
|
||||
|
Loading…
Reference in New Issue
Block a user