From d467c47d318e04350eefc23711c97b089a0c7621 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 24 Jan 2001 13:52:04 +0000 Subject: [PATCH] Replace --with-lyxname by --with-lyx-suffix git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1381 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 6 ++++++ INSTALL | 12 +++++++----- configure.in | 8 +++++--- lib/ChangeLog | 14 ++++++++++++-- lib/Makefile.am | 3 +-- lib/configure | 6 ++++++ lib/configure.m4 | 6 ++++++ lib/reLyX/configure.in | 8 +++++--- po/POTFILES.in | 12 +++++++++++- src/ChangeLog | 4 ++++ src/lyx_main.C | 6 +++--- 11 files changed, 66 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4b67542186..509582a542 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-01-24 John Levon + + * configure.in: working support for --with-lyx-suffix + + * INSTALL: describe --with-lyx-suffix + 2001-01-15 Jean-Marc Lasgouttes * INSTALL (Problems): add tip about using --with-included-string diff --git a/INSTALL b/INSTALL index b316df9385..2f84382e0d 100644 --- a/INSTALL +++ b/INSTALL @@ -122,11 +122,13 @@ flags: --with-extra-lib=DIRECTORY/lib --with-extra-inc=DIRECTORY/include If DIRECTORY is not specified, the current prefix is used. - o --with-lyxname=STRING sets the name of the installed LyX binary and - of the LyX library directory to STRING. This may be used to - compile lyx as lyx-1.1 and avoid clashes with earlier/later - versions. Default is "lyx". - + o --with-lyx-suffix=STRING adds the given suffix to the names of the + LyX binary and scripts, and the library directory. For example, + "--with-lyx-suffix=1.1.6" would install a binary "lyx-1.1.6", and + create a directory "/usr/share/lyx-1.1.6", install "reLyX-1.1.6" etc. + Additionally, LyX will look for the user configuration file in e.g. + "$HOME/.lyx-1.1.6". This feature is useful for installing more than + one version of LyX on the same machine. There are also flags to control the internationalization support in LyX: diff --git a/configure.in b/configure.in index fbe9452a00..85b37fa20d 100644 --- a/configure.in +++ b/configure.in @@ -11,9 +11,11 @@ LYX_GET_VERSION(${srcdir}/src/version.h) AC_CANONICAL_SYSTEM AC_VALIDATE_CACHE_SYSTEM_TYPE -AC_ARG_WITH(lyxname, - [ --with-lyxname the name under which lyx will be installed], - [lyxname=$withval],[lyxname=lyx]) +AC_ARG_WITH(lyx-suffix, + [ --with-lyx-suffix install lyx files as lyx-], + [lyxname="lyx-$withval" + program_suffix=-$withval], + [lyxname=lyx]) AM_INIT_AUTOMAKE($lyxname, $VERSION) diff --git a/lib/ChangeLog b/lib/ChangeLog index 6b76ad0063..5ec242aae2 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,15 @@ +2001-01-24 John Levon + + * Makefile.am: make configure and configure.cmd installed + by hand, to avoid name changes when --with-lyx-suffix + is used. + + * configure: + * configure.m4: support --with-lyx-suffix for the lyxrc.defaults + reLyX and noweb2lyx scripts + + * reLyX/configure.in: support --with-lyx-suffix + 2001-01-23 Dekel Tsur * ui/default.ui: Add Navigate->Refs @@ -10,5 +22,3 @@ * languages: Add extra_options field. It is used to fix the ~n problem with Spanish. - - diff --git a/lib/Makefile.am b/lib/Makefile.am index 1e3cd02a91..be62e535b5 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,7 +1,6 @@ AUTOMAKE_OPTIONS = foreign DISTCLEANFILES = *.orig *.rej *~ *.bak core textclass.lst packages.lst \ lyxrc.defaults doc/LyXConfig.lyx -pkgdata_SCRIPTS = configure configure.cmd MAINTAINERCLEANFILES = $(srcdir)/Makefile.in listerrors SUBDIRS = reLyX bin_SCRIPTS = listerrors @@ -14,7 +13,7 @@ EXAMPLES = examples/*.lyx IMAGES = images/*.xpm KBD = kbd/*.kmap kbd/*.cdef LAYOUT = layouts/*.layout layouts/*.inc -LYXSCRIPTS = scripts/* +LYXSCRIPTS = configure configure.cmd scripts/* TEMPL = templates/*.lyx TEXSUPPORT = tex/*.cls UI = ui/*.ui diff --git a/lib/configure b/lib/configure index faf849c877..40aa44d3d4 100755 --- a/lib/configure +++ b/lib/configure @@ -11,6 +11,7 @@ lyx_check_config=yes lyx_keep_temps=no srcdir= +lyx_suffix= #### Parse the command line for ac_option do @@ -22,12 +23,15 @@ Options: --help show this help lines --keep-temps keep temporary files (for debug. purposes) --without-latex-config do not run LaTeX to determine configuration + --with-lyx-suffix=suffix suffix of binary installed files EOF exit 0;; --without-latex-config) lyx_check_config=no ;; --keep-temps) lyx_keep_temps=yes ;; + --with-lyx-suffix*) + lyx_suffix=`echo "$ac_option" | sed 's,--with-lyx-suffix=,,;s,^,-,'` esac done @@ -223,6 +227,7 @@ fi PATH=${save_PATH} test $tex_to_lyx_command = "reLyX" && tex_to_lyx_command="reLyX -f \$\$i" +tex_to_lyx_command=`echo $tex_to_lyx_command | sed "s,reLyX,reLyX$lyx_suffix,"` echo $ac_n "checking for a Noweb -> LyX converter""... $ac_c" echo "$ac_t""(noweb2lyx)" @@ -259,6 +264,7 @@ if test -z "$literate_to_lyx_command" ; then fi test $literate_to_lyx_command = "noweb2lyx" && literate_to_lyx_command="noweb2lyx \$\$i \$\$o" +literate_to_lyx_command=`echo $literate_to_lyx_command | sed "s,noweb2lyx,noweb2lyx$lyx_suffix,"` # Search something to process a literate document echo $ac_n "checking for a Noweb -> LaTeX converter""... $ac_c" diff --git a/lib/configure.m4 b/lib/configure.m4 index 9c737877fc..1e564869ef 100644 --- a/lib/configure.m4 +++ b/lib/configure.m4 @@ -85,6 +85,7 @@ dnl ######### End M4 macros ############################################# lyx_check_config=yes lyx_keep_temps=no srcdir= +lyx_suffix= #### Parse the command line for ac_option do @@ -96,12 +97,15 @@ Options: --help show this help lines --keep-temps keep temporary files (for debug. purposes) --without-latex-config do not run LaTeX to determine configuration + --with-lyx-suffix=suffix suffix of binary installed files EOF exit 0;; --without-latex-config) lyx_check_config=no ;; --keep-temps) lyx_keep_temps=yes ;; + --with-lyx-suffix*) + lyx_suffix=`echo "$ac_option" | sed 's,--with-lyx-suffix=,,;s,^,-,'` esac done @@ -185,9 +189,11 @@ PATH=${PATH}:./reLyX/ SEARCH_PROG([for a LaTeX -> LyX converter],tex_to_lyx_command,reLyX) PATH=${save_PATH} test $tex_to_lyx_command = "reLyX" && tex_to_lyx_command="reLyX -f \$\$i" +tex_to_lyx_command=`echo $tex_to_lyx_command | sed "s,reLyX,reLyX$lyx_suffix,"` SEARCH_PROG([for a Noweb -> LyX converter],literate_to_lyx_command,noweb2lyx) test $literate_to_lyx_command = "noweb2lyx" && literate_to_lyx_command="noweb2lyx \$\$i \$\$o" +literate_to_lyx_command=`echo $literate_to_lyx_command | sed "s,noweb2lyx,noweb2lyx$lyx_suffix,"` # Search something to process a literate document SEARCH_PROG([for a Noweb -> LaTeX converter],literate_to_tex_command,noweave) diff --git a/lib/reLyX/configure.in b/lib/reLyX/configure.in index f59fec50ad..3975fcfec6 100644 --- a/lib/reLyX/configure.in +++ b/lib/reLyX/configure.in @@ -6,9 +6,11 @@ AC_CONFIG_AUX_DIR(../../config) dnl PACKAGE=reLyX dnl Do this to install in $datadir/lyx/reLyX instead of $datadir/reLyX/reLyX -AC_ARG_WITH(lyxname, - [ --with-lyxname the name under which lyx will be installed], - [lyxname=$withval],[lyxname=lyx]) +AC_ARG_WITH(lyx-suffix, + [ --with-lyx-suffix install lyx files as lyx-], + [lyxname="lyx-$withval" + program_suffix=-$withval], + [lyxname=lyx]) dnl must make a macro that gets the reLyX version VERSION=2.0 diff --git a/po/POTFILES.in b/po/POTFILES.in index 48e5b65b0a..9acd80cf7a 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -12,6 +12,7 @@ src/credits_form.C src/CutAndPaste.C src/debug.C src/exporter.C +src/ext_l10n.h src/filedlg.C src/FontLoader.C src/form1.C @@ -26,7 +27,13 @@ src/frontends/gnome/FormUrl.C src/frontends/gnome/Menubar_pimpl.C src/frontends/kde/citationdlg.C src/frontends/kde/dlg/copyrightdlgdata.C +src/frontends/kde/dlg/docdlgdata.C +src/frontends/kde/dlg/docextradlgdata.C +src/frontends/kde/dlg/docgeometrydlgdata.C +src/frontends/kde/dlg/doclanguagedlgdata.C +src/frontends/kde/dlg/docsettingsdlgdata.C src/frontends/kde/dlg/indexdlgdata.C +src/frontends/kde/dlg/lengthentry.C src/frontends/kde/dlg/paraabovedlgdata.C src/frontends/kde/dlg/parabelowdlgdata.C src/frontends/kde/dlg/paradlgdata.C @@ -34,8 +41,10 @@ src/frontends/kde/dlg/paraextradlgdata.C src/frontends/kde/dlg/parageneraldlgdata.C src/frontends/kde/dlg/printdlgdata.C src/frontends/kde/dlg/tabcreatedlgdata.C +src/frontends/kde/docdlg.C src/frontends/kde/FormCitation.C src/frontends/kde/FormCopyright.C +src/frontends/kde/FormDocument.C src/frontends/kde/FormIndex.C src/frontends/kde/FormParagraph.C src/frontends/kde/FormPrint.C @@ -49,6 +58,7 @@ src/frontends/kde/paraextradlg.C src/frontends/kde/parageneraldlg.C src/frontends/kde/printdlg.C src/frontends/kde/refdlg.C +src/frontends/kde/tabcreatedlg.C src/frontends/kde/tocdlg.C src/frontends/kde/urldlg.C src/frontends/xforms/FormBase.h @@ -103,6 +113,7 @@ src/insets/insetlist.C src/insets/insetmarginal.C src/insets/insetminipage.C src/insets/insetparent.C +src/insets/insetref.C src/insets/insettabular.C src/insets/insettext.C src/insets/insettheorem.C @@ -148,4 +159,3 @@ src/support/path.h src/tabular.C src/text2.C src/text.C -src/ext_l10n.h diff --git a/src/ChangeLog b/src/ChangeLog index 090c8d5919..a24700f73e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-01-24 John Levon + + * lyx_main.C: tiny error message fix + 2001-01-24 Jean-Marc Lasgouttes * lyx_gui.C (LyXGUI): force the LC_NUMERIC locale to "C" after diff --git a/src/lyx_main.C b/src/lyx_main.C index cf5a25d79e..8d4b865dcf 100644 --- a/src/lyx_main.C +++ b/src/lyx_main.C @@ -318,10 +318,10 @@ void LyX::init(int */*argc*/, char **argv, bool gui) // Warn the user if we couldn't find "chkconfig.ltx" if (system_lyxdir == "./") { - lyxerr <<_("LyX Warning! Couldn't determine system directory.") - <<_("Try the '-sysdir' command line parameter or") + lyxerr <<_("LyX Warning! Couldn't determine system directory. ") + <<_("Try the '-sysdir' command line parameter or ") <<_("set the environment variable LYX_DIR_11x to the " - "LyX system directory") + "LyX system directory ") << _("containing the file `chkconfig.ltx'.") << endl; if (!path_shown) lyxerr << _("Using built-in default ")