bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Patch/guile] Install dummy headers for transition


From: David Ayers
Subject: [Patch/guile] Install dummy headers for transition
Date: Thu, 31 Jul 2003 01:58:10 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Hello,

So that projects, dependent on gnustep-guile won't break, I've installed a patch similar to the one that will be part of the -base and -gui transition, which installs dummy headers, warning about the change and including the real headers.

   * Library/CompatibilityHeaders.make: New file.
   * Library/GNUmakefile: Include CompatibilityHeaders.make to create
   dummy headers for at least one release.

Commited.

Cheers,
David
Index: Library/CompatibilityHeaders.make
===================================================================
RCS file: Library/CompatibilityHeaders.make
diff -N Library/CompatibilityHeaders.make
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ Library/CompatibilityHeaders.make   30 Jul 2003 23:39:25 -0000
@@ -0,0 +1,43 @@
+#
+#   CompatibilityHeaders.make
+#
+#   Create compatibility headers so that code written before the big header
+#   move will continue to compile (for a while).
+#
+#   Copyright (C) 2003 Free Software Foundation, Inc.
+#
+#
+#   Author: Alexander Malmberg <alexander@malmberg.org>
+#   Date: 2003-07-29
+#
+#   This file is part of the GNUstep project.
+#
+#   This library is free software; you can redistribute it and/or
+#   modify it under the terms of the GNU General Public License
+#   as published by the Free Software Foundation; either version 2
+#   of the License, or (at your option) any later version.
+#
+#   You should have received a copy of the GNU General Public
+#   License along with this library; see the file COPYING.LIB.
+#   If not, write to the Free Software Foundation,
+#   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+
+# The usage should be fairly obvious. For each pair of OLD_DIR and NEW_DIR,
+# make a copy and set OLD_DIR, NEW_DIR, and LIST. Note that LIST must be
+# non-empty; if there are no files for a pair, remove it completely.
+
+after-install::
+       @echo Installing compatibility headers...
+
+       @OLD_DIR=gnustep/guile; NEW_DIR=GNUstepGuile; \
+       LIST="$(libgstep_guile_HEADER_FILES)" ;\
+       $(MKDIRS) $(GNUSTEP_HEADERS)/$$OLD_DIR; \
+       for I in $$LIST ; do \
+         (echo "#warning $$I is now included using the path <$$NEW_DIR/$$I>";\
+         echo "#include <$$NEW_DIR/$$I>" ) \
+         > $(GNUSTEP_HEADERS)/$$OLD_DIR/$$I; \
+       done
+
+
Index: Library/GNUmakefile
===================================================================
RCS file: /cvsroot/gnustep/gnustep/dev-libs/guile/Library/GNUmakefile,v
retrieving revision 1.14
diff -u -r1.14 GNUmakefile
--- Library/GNUmakefile 29 Jul 2003 14:53:45 -0000      1.14
+++ Library/GNUmakefile 30 Jul 2003 23:39:25 -0000
@@ -70,3 +70,5 @@
 
 include Makefile.postamble
 
+include CompatibilityHeaders.make
+

reply via email to

[Prev in Thread] Current Thread [Next in Thread]