emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-24 r111392: * make-dist: Add a --tests option, to in


From: Glenn Morris
Subject: [Emacs-diffs] emacs-24 r111392: * make-dist: Add a --tests option, to include test/ (backport from trunk)
Date: Thu, 25 Jul 2013 07:03:42 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 111392
revision-id: address@hidden
parent: address@hidden
committer: Glenn Morris <address@hidden>
branch nick: emacs-24
timestamp: Thu 2013-07-25 00:03:33 -0700
message:
  * make-dist: Add a --tests option, to include test/   (backport from trunk)
modified:
  ChangeLog                      changelog-20091113204419-o5vbwnq5f7feedwu-1538
  make-dist                      makedist-20091113204419-o5vbwnq5f7feedwu-476
=== modified file 'ChangeLog'
--- a/ChangeLog 2013-07-11 17:19:31 +0000
+++ b/ChangeLog 2013-07-25 07:03:33 +0000
@@ -1,3 +1,7 @@
+2013-07-25  Glenn Morris  <address@hidden>
+
+       * make-dist: Add a --tests option, to include test/.
+
 2013-07-02  Christoph Egger  <address@hidden>  (tiny change)
 
        * configure.ac (emacs_broken_SIGIO): Set on gnu-kfreebsd to avoid hang.

=== modified file 'make-dist'
--- a/make-dist 2013-01-10 04:00:02 +0000
+++ b/make-dist 2013-07-25 07:03:33 +0000
@@ -1,8 +1,7 @@
 #!/bin/sh
 ### make-dist: create an Emacs distribution tar file from current srcdir
 
-## Copyright (C) 1995, 1997-1998, 2000-2013 Free Software Foundation,
-## Inc.
+## Copyright (C) 1995, 1997-1998, 2000-2013 Free Software Foundation, Inc.
 
 ## This file is part of GNU Emacs.
 
@@ -51,6 +50,7 @@
 make_tar=no
 default_gzip=gzip
 newer=""
+with_tests=no
 
 while [ $# -gt 0 ]; do
   case "$1" in
@@ -102,6 +102,12 @@
       check=no
      ;;
 
+    ## Include the test/ directory.
+    ## This option is mainly for the hydra build server.
+    "--tests")
+      with_tests=yes
+     ;;
+
     "--help")
       echo "Usage: ${progname} [options]"
       echo ""
@@ -115,6 +121,7 @@
       echo "  --no-update      don't recompile or do analogous things"
       echo "  --snapshot       same as --clean-up --no-update --tar --no-check"
       echo "  --tar            make a tar file"
+      echo "  --tests  include the test/ directory"
       echo ""
       exit 0
     ;;
@@ -294,7 +301,7 @@
              build-aux build-aux/snippet \
              src src/bitmaps lib lib-src oldXMenu lwlib \
              nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \
-             `find etc lisp admin -type d` \
+             `find etc lisp admin test -type d` \
              doc doc/emacs doc/misc doc/man doc/lispref doc/lispintro \
              info m4 msdos \
              nextstep nextstep/templates \
@@ -305,6 +312,13 @@
              nextstep/GNUstep/Emacs.base \
              nextstep/GNUstep/Emacs.base/Resources
 do
+
+  if [ "$with_tests" != "yes" ]; then
+    case $subdir in
+        test*) continue ;;
+    esac
+  fi
+
   ## site-lisp for in-place installs (?).
   [ "$subdir" = "site-lisp" ] || [ -d "$subdir" ] || \
       echo "WARNING: $subdir not found, making anyway"
@@ -447,6 +461,17 @@
   ln $f $tempdir/$f
 done
 
+if [ "$with_tests" = "yes" ]; then
+  echo "Making links to \`test' and its subdirectories"
+  for f in `find test -type f`; do
+    case $f in
+      test/automated/flymake/warnpred/a.out) continue ;;
+      test/automated/Makefile) continue ;;
+    esac
+    ln $f $tempdir/$f
+  done
+fi
+
 echo "Making links to \`etc' and its subdirectories"
 for f in `find etc -type f`; do
   case $f in


reply via email to

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