mirror of https://github.com/GNOME/gimp.git
libgimpbase/gimpversion.h is now only updated if its contents actually
2003-08-14 Manish Singh <yosh@gimp.org> * configure.in: libgimpbase/gimpversion.h is now only updated if its contents actually change. This should prevent rebuilding everything if only configure is run. * libgimpbase/gimpversion.h.in: no longer needed
This commit is contained in:
parent
61eaa12043
commit
0edd60fad0
|
@ -1,10 +1,17 @@
|
|||
2003-08-14 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* configure.in: libgimpbase/gimpversion.h is now only updated if
|
||||
its contents actually change. This should prevent rebuilding
|
||||
everything if only configure is run.
|
||||
|
||||
* libgimpbase/gimpversion.h.in: no longer needed
|
||||
|
||||
2003-08-13 Jay Cox <jaycox@gimp.org>
|
||||
|
||||
* app/widgets/gimpbrushfactoryview.c: Reduced the range of the
|
||||
spacing scale widget for convenience. Extreme values may still be
|
||||
entered in the spin box.
|
||||
|
||||
|
||||
2003-08-14 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* libgimp/gimp.def: Add gimp_image_is_dirty.
|
||||
|
|
69
configure.in
69
configure.in
|
@ -1183,14 +1183,63 @@ GIMP_MODULES=modules
|
|||
AC_SUBST(GIMP_PLUGINS)
|
||||
AC_SUBST(GIMP_MODULES)
|
||||
|
||||
AC_OUTPUT([
|
||||
AC_CONFIG_COMMANDS([libgimp/gimpversion.h], [
|
||||
outfile=gimpversion.h-tmp
|
||||
cat > $outfile <<\_______EOF
|
||||
/* gimpversion.h
|
||||
*
|
||||
* This is a generated file. Please modify 'configure.in'
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_VERSION_H__
|
||||
#define __GIMP_VERSION_H__
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
_______EOF
|
||||
|
||||
|
||||
cat >>$outfile <<_______EOF
|
||||
#define GIMP_MAJOR_VERSION ($gimp_major_ver)
|
||||
#define GIMP_MINOR_VERSION ($gimp_minor_ver)
|
||||
#define GIMP_MICRO_VERSION ($gimp_micro_ver)
|
||||
#define GIMP_VERSION "$gimp_ver"
|
||||
_______EOF
|
||||
|
||||
cat >>$outfile <<\_______EOF
|
||||
#define GIMP_CHECK_VERSION(major, minor, micro) \
|
||||
(GIMP_MAJOR_VERSION > (major) || \
|
||||
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
|
||||
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
|
||||
GIMP_MICRO_VERSION >= (micro)))
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_VERSION_H__ */
|
||||
_______EOF
|
||||
|
||||
if cmp -s $outfile libgimpbase/gimpversion.h; then
|
||||
AC_MSG_NOTICE([libgimpbase/gimpversion.h is unchanged])
|
||||
rm -f $outfile
|
||||
else
|
||||
mv $outfile libgimpbase/gimpversion.h
|
||||
fi
|
||||
],[
|
||||
gimp_major_ver="$GIMP_MAJOR_VERSION"
|
||||
gimp_minor_ver="$GIMP_MINOR_VERSION"
|
||||
gimp_micro_ver="$GIMP_MICRO_VERSION"
|
||||
gimp_ver="$GIMP_VERSION"
|
||||
])
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
gimptool-win32.c
|
||||
tools/Makefile
|
||||
tools/authorsgen/Makefile
|
||||
tools/pdbgen/Makefile
|
||||
regexrepl/Makefile
|
||||
libgimp/Makefile
|
||||
libgimpbase/gimpversion.h
|
||||
libgimpbase/Makefile
|
||||
libgimpcolor/Makefile
|
||||
libgimpmath/Makefile
|
||||
|
@ -1303,10 +1352,14 @@ gimp-1.3.pc
|
|||
gimpui-1.3.pc
|
||||
gimp.spec
|
||||
Makefile
|
||||
],[
|
||||
chmod +x gimptool-1.3
|
||||
|
||||
sed -e "/POTFILES =/r po-libgimp/POTFILES" po-libgimp/Makefile.in > po-libgimp/Makefile
|
||||
sed -e "/POTFILES =/r po-plug-ins/POTFILES" po-plug-ins/Makefile.in > po-plug-ins/Makefile
|
||||
sed -e "/POTFILES =/r po-script-fu/POTFILES" po-script-fu/Makefile.in > po-script-fu/Makefile
|
||||
])
|
||||
|
||||
AC_CONFIG_COMMANDS([chmod-scripts],
|
||||
[chmod +x gimptool-1.3])
|
||||
|
||||
AC_CONFIG_COMMANDS([sed-po-makefiles],
|
||||
[sed -e "/POTFILES =/r po-libgimp/POTFILES" po-libgimp/Makefile.in > po-libgimp/Makefile
|
||||
sed -e "/POTFILES =/r po-plug-ins/POTFILES" po-plug-ins/Makefile.in > po-plug-ins/Makefile
|
||||
sed -e "/POTFILES =/r po-script-fu/POTFILES" po-script-fu/Makefile.in > po-script-fu/Makefile])
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
/* LIBGIMP - The GIMP Library
|
||||
* Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GIMP_VERSION_H__
|
||||
#define __GIMP_VERSION_H__
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
#define GIMP_MAJOR_VERSION (@GIMP_MAJOR_VERSION@)
|
||||
#define GIMP_MINOR_VERSION (@GIMP_MINOR_VERSION@)
|
||||
#define GIMP_MICRO_VERSION (@GIMP_MICRO_VERSION@)
|
||||
#define GIMP_VERSION "@GIMP_VERSION@"
|
||||
#define GIMP_CHECK_VERSION(major, minor, micro) \
|
||||
(GIMP_MAJOR_VERSION > (major) || \
|
||||
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION > (minor)) || \
|
||||
(GIMP_MAJOR_VERSION == (major) && GIMP_MINOR_VERSION == (minor) && \
|
||||
GIMP_MICRO_VERSION >= (micro)))
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GIMP_VERSION_H__ */
|
Loading…
Reference in New Issue