]> git.lyx.org Git - features.git/commitdiff
* src/support/package.C.in (get_build_dirs): Look at Makefile
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 27 Apr 2006 16:44:43 +0000 (16:44 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 27 Apr 2006 16:44:43 +0000 (16:44 +0000)
          instead of lyxrc.defaults. Simplify the check for
          chkconfig.ltx.

* configure.ac: do not run lib/configure.py

* lib/doc/Makefile.am: LaTeXConfig.lyx is not generated anymore.

* lib/configure.py (removeExtraFiles): remove.

* lib/Makefile.am: no files are generated in there.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13763 a592a061-630c-0410-9148-cb99ea01b6c8

configure.ac
lib/Makefile.am
lib/configure.py
lib/doc/Makefile.am
src/support/package.C.in

index 6c88a7c322e0d48078c499a7c3371c6d023de8ff..2a36063a274916a7b2eb72d102e8100865a0eefd 100644 (file)
@@ -475,8 +475,6 @@ AC_CONFIG_FILES([Makefile  m4/Makefile \
        src/frontends/qt4/moc/Makefile \
        src/frontends/qt4/ui/Makefile \
 ])
-echo "Running $LYX_ABS_TOP_SRCDIR/lib/configure.py --with-version-suffix=\"$version_suffix\""
-(test -d lib || mkdir lib; cd lib && python $LYX_ABS_TOP_SRCDIR/lib/configure.py --with-version-suffix="$version_suffix")
 
 AC_OUTPUT
 # show version information
index 741819ea825ce1a5d98532b4feb16fa896c93bc5..89901f39f23ae2c000b1c801a1d81b2ae871ec61 100644 (file)
@@ -1,7 +1,5 @@
 include $(top_srcdir)/config/common.am
 
-DISTCLEANFILES += texput.log textclass.lst packages.lst lyxrc.defaults
-
 SUBDIRS = doc lyx2lyx
 
 EXTRA_DIST = \
@@ -13,8 +11,7 @@ CHMOD = chmod
 # version-suffix would get appended to the names. So we use dist_pkgdata_DATA
 # and chmod manually in install-data-hook.
 dist_pkgdata_DATA = lyxrc.example CREDITS chkconfig.ltx configure.py \
-              lyxrc.defaults textclass.lst packages.lst external_templates \
-              encodings languages symbols syntax.default
+              external_templates encodings languages symbols syntax.default
 
 dist_noinst_DATA = \
        images/README \
@@ -930,9 +927,6 @@ dist_ui_DATA = \
        ui/stdmenus.ui \
        ui/stdtoolbars.ui
 
-lyxrc.defaults: $(srcdir)/configure.py
-       python $<
-
 install-data-hook:
        $(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/configure.py
        for i in $(dist_scripts_DATA); do \
index 7cef2fe98931ca429ac7a0f311bdda300110ffda..c73e8c6a7ba48f4f7462f80c1b11cc6fab47ebb4 100644 (file)
@@ -624,31 +624,6 @@ def checkTeXAllowSpaces():
     removeFiles( [ 'a b.tex', 'a b.log', 'texput.log' ])
 
 
-def removeExtraFiles():
-  # Remove superfluous files if we are not writing in the main lib
-  # directory
-  for file in [outfile, 'textclass.lst', 'packages.lst', \
-    'doc/LaTeXConfig.lyx']:
-    try:
-      # we rename the file first, so that we avoid comparing a file with itself
-      os.rename(file, file + '.new')
-      syscfg = open( os.path.join(srcdir, file) ).read()
-      mycfg = open( file + '.new').read()
-      if mycfg == syscfg:
-        print "removing ", file, " which is identical to the system global version"
-        removeFiles( [file + '.new'] )
-      else:
-        os.rename( file + '.new', file )
-    except:  # use local version if anthing goes wrong.
-      os.rename( file + '.new', file )
-      pass
-  # Final clean-up
-  if not lyx_keep_temps:
-    removeFiles(['chkconfig.sed', 'chkconfig.vars',  \
-      'wrap_chkconfig.ltx', 'wrap_chkconfig.log', \
-      'chklayouts.tex', 'missfont.log'])
-
-
 if __name__ == '__main__':
   lyx_check_config = True
   outfile = 'lyxrc.defaults'
@@ -705,4 +680,3 @@ Options:
   # --without-latex-config can disable lyx_check_config
   checkLatexConfig( lyx_check_config and LATEX != '', bool_docbook, bool_linuxdoc)
   createLaTeXConfig()
-  removeExtraFiles()
index 8857baed6cef476a1bf314136041698e9679937f..efdd02360718f4fe9b146fd5d7d22ebf338d6927 100644 (file)
@@ -1,6 +1,6 @@
 include $(top_srcdir)/config/common.am
 
-DISTCLEANFILES += LyXConfig.lyx LaTeXConfig.lyx $(tocfiles)
+DISTCLEANFILES += $(tocfiles)
 
 EXTRA_DIST = depend.py doc_toc.py LyXConfig.lyx.in README.Documentation $(DEPENDFILE) $(docfiles)
 
@@ -66,9 +66,7 @@ docfiles = \
        platypus.eps
 
 docdir = $(pkgdatadir)/doc
-doc_DATA = \
-       $(docfiles) \
-       LaTeXConfig.lyx
+doc_DATA = $(docfiles) 
 
 DEPENDFILE = $(srcdir)/Makefile.depend
 # include $(DEPENDFILE) does not work because automake is too limited.
index 7eba94dfabca668012f2291f9bd25a6b5ca3beff..6810a5509fd2974aa8962ed1655d0a1c939ad60c 100644 (file)
@@ -250,10 +250,10 @@ get_build_dirs(string const & abs_binary,
 {
        string const check_text = "Checking whether LyX is run in place...";
 
-       // We're looking for "lyxrc.defaults" in a directory
+       // We're looking for "Makefile" in a directory
        //   binary_dir/../lib
        // We're also looking for "chkconfig.ltx" in a directory
-       //   binary_dir/top_srcdir()/lib
+       //   top_srcdir()/lib
        // If both are found, then we're running LyX in-place.
 
        // Note that the name of the lyx binary may be a symbolic link.
@@ -265,11 +265,10 @@ get_build_dirs(string const & abs_binary,
                string const build_support_dir =
                        get_build_support_dir(binary_dir, top_build_dir_location);
 
-               if (!fileSearch(build_support_dir, "lyxrc.defaults").empty()) {
+               if (!fileSearch(build_support_dir, "Makefile").empty()) {
                        // Try and find "chkconfig.ltx".
                        string const system_support_dir =
-                               makeAbsPath(addPath(top_srcdir(), "lib"),
-                                           addPath(binary_dir, "support"));
+                               addPath(top_srcdir(), "lib");
 
                        if (!fileSearch(system_support_dir, "chkconfig.ltx").empty()) {
                                lyxerr[Debug::INIT] << check_text << " yes"