mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-02 00:00:40 +00:00
changes to how devel versions are detected added detections of prereleases (and use it) changed version po files autoupdated because of make dist
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@245 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
3fa37dc5a4
commit
4ea178132c
@ -1,5 +1,11 @@
|
||||
1999-10-25 Lars Gullik Bjønnes <larsbj@lyx.org>
|
||||
|
||||
* acinclude.m4 (VERSION): new rules for when a version is
|
||||
development, added also a variable for prerelease.
|
||||
(warnings): we set with_warnings=yes for prereleases
|
||||
(lyx_opt): prereleases compile with same optimization as development
|
||||
(CXXFLAGS): only use pedantic if we are a development version
|
||||
|
||||
* src/BufferView.C (restorePosition): don't do anything if the
|
||||
backstack is empty.
|
||||
|
||||
|
34
acinclude.m4
34
acinclude.m4
@ -8,16 +8,21 @@ dnl built, displays it and sets variable "lyx_devel" to yes or no depending
|
||||
dnl whether the version is a development release or not.
|
||||
AC_DEFUN(LYX_GET_VERSION,[
|
||||
changequote(, ) dnl
|
||||
# Get LyX version from $1 and guess wether is is stable or experimental.
|
||||
VERSION=`grep '#define *LYX_VERSION' $1 |
|
||||
sed -e 's/^.*"\([0-9.]*\)[^0-9.].*$/\1/' 2>/dev/null`
|
||||
VERSION=`grep '#define *LYX_VERSION' $1 |
|
||||
sed -e 's/^.*"\(.*\)"$/\1/' 2>/dev/null`
|
||||
echo "configuring LyX version $VERSION"
|
||||
if echo "$VERSION" | grep '[0-9]*\.[0-9]*[13579]\.[0-9]*' >/dev/null ; then
|
||||
if echo "$VERSION" | grep 'cvs' >/dev/null ; then
|
||||
lyx_devel_version=yes
|
||||
echo "WARNING: This is a development version. Expect bugs."
|
||||
else
|
||||
lyx_devel_version=no
|
||||
fi
|
||||
if echo "$VERSION" | grep 'pre' > /dev/null ; then
|
||||
lyx_prerelease=yes
|
||||
echo "WARNING: This is a prerelease. Be careful and backup your documents."
|
||||
else
|
||||
lyx_prerelease=no
|
||||
fi
|
||||
changequote([, ]) dnl
|
||||
PACKAGE=lyx${program_suffix}
|
||||
AC_SUBST(lyx_devel_version)
|
||||
@ -142,12 +147,12 @@ AC_PROG_CXX_GNU
|
||||
dnl We might want to get or shut warnings.
|
||||
AC_ARG_WITH(warnings,
|
||||
[ --with-warnings tell GNU C++ to display more warnings],,
|
||||
[if test $lyx_devel_version = yes && test $ac_cv_prog_gxx = yes ; then
|
||||
with_warnings=yes;
|
||||
else
|
||||
with_warnings=no;
|
||||
fi;])
|
||||
if test "x$with_warnings" = xyes ; then
|
||||
[ if test $lyx_devel_version = yes -o $lyx_prerelease = yes && test $ac_cv_prog_gxx = yes ; then
|
||||
with_warnings=yes;
|
||||
else
|
||||
with_warnings=no;
|
||||
fi;])
|
||||
if test x$with_warnings = xyes ; then
|
||||
lyx_flags="$lyx_flags warnings"
|
||||
AC_DEFINE(WITH_WARNINGS, 1,
|
||||
[Define this if you want to see the warning directives put here and
|
||||
@ -155,7 +160,7 @@ if test "x$with_warnings" = xyes ; then
|
||||
fi
|
||||
|
||||
# optimize less for development versions
|
||||
if test "$lyx_devel_version" = yes ; then
|
||||
if test $lyx_devel_version = yes -o $lyx_prerelease = yes ; then
|
||||
lyx_opt="-O"
|
||||
else
|
||||
lyx_opt="-O2"
|
||||
@ -184,8 +189,11 @@ dnl Check the version of g++
|
||||
else
|
||||
CXXFLAGS="$lyx_opt"
|
||||
fi
|
||||
if test $with_warnings = yes ; then
|
||||
CXXFLAGS="$CXXFLAGS -ansi -pedantic -Wall"
|
||||
if test x$with_warnings = xyes ; then
|
||||
CXXFLAGS="$CXXFLAGS -ansi -Wall"
|
||||
if test $lyx_devel_version = yes ; then
|
||||
CXXFLAGS="$CXXFLAGS -pedantic"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
GXX=
|
||||
|
@ -1,3 +1,3 @@
|
||||
/* Version and release date definition */
|
||||
#define LYX_VERSION "1.1.1pre2"
|
||||
#define LYX_RELEASE "Wed, Oct 13, 1999"
|
||||
#define LYX_VERSION "1.1.1cvs"
|
||||
#define LYX_RELEASE "Man, Oct 25, 1999"
|
||||
|
Loading…
Reference in New Issue
Block a user