emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r104341: Restore test/ to its non-dis


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r104341: Restore test/ to its non-distributed state (bug#8107)
Date: Mon, 23 May 2011 21:00:56 -0700
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 104341
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Mon 2011-05-23 21:00:56 -0700
message:
  Restore test/ to its non-distributed state (bug#8107)
  
  * make-dist: Don't distribute test/.
  * configure.in (OPT_MAKEFILES_IN): New output variable.
  (AC_CONFIG_FILES): Conditionally include test/automated/Makefile.
  * Makefile.in (OPT_MAKEFILES_IN): New, set by configure.
  (SUBDIR_MAKEFILES_IN): Use $OPT_MAKEFILES_IN.
  (check): Give an explicit error if test/ is not present.
modified:
  ChangeLog
  Makefile.in
  configure.in
  make-dist
=== modified file 'ChangeLog'
--- a/ChangeLog 2011-05-24 03:40:14 +0000
+++ b/ChangeLog 2011-05-24 04:00:56 +0000
@@ -1,5 +1,12 @@
 2011-05-24  Glenn Morris  <address@hidden>
 
+       * make-dist: Don't distribute test/.  (Bug#8107)
+       * configure.in (OPT_MAKEFILES_IN): New output variable.
+       (AC_CONFIG_FILES): Conditionally include test/automated/Makefile.
+       * Makefile.in (OPT_MAKEFILES_IN): New, set by configure.
+       (SUBDIR_MAKEFILES_IN): Use $OPT_MAKEFILES_IN.
+       (check): Give an explicit error if test/ is not present.
+
        * Makefile.in (SUBDIR_MAKEFILES_IN): New variable.
        (SUBDIR_MAKEFILES): Derive from $SUBDIR_MAKEFILES_IN.
        (Makefile): Use $SUBDIR_MAKEFILES_IN.

=== modified file 'Makefile.in'
--- a/Makefile.in       2011-05-24 03:40:14 +0000
+++ b/Makefile.in       2011-05-24 04:00:56 +0000
@@ -264,11 +264,14 @@
 # checked out from a VCS.
 SUBDIR = lib lib-src src lisp
 
+# test/automated/Makefile.in, if you have it (test/ is not in the release).
+OPT_MAKEFILES_IN = @OPT_MAKEFILES_IN@
+
 # The subdir makefiles created by config.status.
 SUBDIR_MAKEFILES_IN = lib/Makefile.in lib-src/Makefile.in \
   doc/emacs/Makefile.in doc/misc/Makefile.in doc/lispref/Makefile.in \
   doc/lispintro/Makefile.in src/Makefile.in oldXMenu/Makefile.in \
-  lwlib/Makefile.in leim/Makefile.in lisp/Makefile.in 
test/automated/Makefile.in
+  lwlib/Makefile.in leim/Makefile.in lisp/Makefile.in $(OPT_MAKEFILES_IN)
 
 SUBDIR_MAKEFILES = $(SUBDIR_MAKEFILES_IN:.in=)
 
@@ -862,7 +865,10 @@
        cd src; $(MAKE) tags
 
 check:
-       cd test/automated; $(MAKE) check
+       @if test ! -d test/automated; then \
+         echo "You do not seem to have the test/ directory."; exit 1; \
+       else true; fi
+       cd test/automated && $(MAKE) check
 
 dist:
        cd ${srcdir}; ./make-dist

=== modified file 'configure.in'
--- a/configure.in      2011-05-20 00:41:03 +0000
+++ b/configure.in      2011-05-24 04:00:56 +0000
@@ -3715,7 +3715,16 @@
 AC_CONFIG_FILES([Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile \
        doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile \
        doc/lispref/Makefile src/Makefile \
-       lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile])
+       lwlib/Makefile lisp/Makefile leim/Makefile])
+
+dnl test/ is not present in release tarfiles.
+if test -f $srcdir/test/automated/Makefile.in; then
+  OPT_MAKEFILES_IN=test/automated/Makefile.in
+  AC_CONFIG_FILES([test/automated/Makefile])
+else
+  OPT_MAKEFILES_IN=
+fi
+AC_SUBST(OPT_MAKEFILES_IN)
 
 dnl Make the necessary directories, if they don't exist.
 AC_CONFIG_COMMANDS([mkdirs], [

=== modified file 'make-dist'
--- a/make-dist 2011-03-31 04:24:03 +0000
+++ b/make-dist 2011-05-24 04:00:56 +0000
@@ -299,7 +299,6 @@
              nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \
              `find etc lisp -type d` \
              doc doc/emacs doc/misc doc/man doc/lispref doc/lispintro \
-             test test/automated test/cedet test/cedet/tests test/indent \
              info m4 msdos \
              nextstep nextstep/Cocoa nextstep/Cocoa/Emacs.base \
              nextstep/Cocoa/Emacs.base/Contents \
@@ -485,26 +484,6 @@
  ln ChangeLog* *.1 ../../${tempdir}/doc/man
  cd ../../${tempdir}/doc/man)
 
-echo "Making links to \`test'"
-(cd test
- ln *.el ChangeLog README ../${tempdir}/test)
-
-echo "Making links to \`test/automated'"
-(cd test/automated
- ln *.el Makefile.in ../../${tempdir}/test/automated)
-
-echo "Making links to \`test/cedet'"
-(cd test/cedet
- ln *.el ../../${tempdir}/test/cedet)
-
-echo "Making links to \`test/cedet/tests'"
-(cd test/cedet/tests
- ln *.c *.[ch]pp *.el *.hh *.java *.make ../../../${tempdir}/test/cedet/tests)
-
-echo "Making links to \`test/indent'"
-(cd test/indent
- ln *.m *.mod *.prolog Makefile ../../${tempdir}/test/indent)
-
 ### It would be nice if they could all be symlinks to top-level copy, but
 ### you're not supposed to have any symlinks in distribution tar files.
 echo "Making sure copying notices are all copies of \`COPYING'"


reply via email to

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