diff options
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rwxr-xr-x | make-dist | 31 |
2 files changed, 32 insertions, 3 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-07-25 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * make-dist: Add a --tests option, to include test/. | ||
| 4 | |||
| 1 | 2013-07-02 Christoph Egger <christoph@debian.org> (tiny change) | 5 | 2013-07-02 Christoph Egger <christoph@debian.org> (tiny change) |
| 2 | 6 | ||
| 3 | * configure.ac (emacs_broken_SIGIO): Set on gnu-kfreebsd to avoid hang. | 7 | * configure.ac (emacs_broken_SIGIO): Set on gnu-kfreebsd to avoid hang. |
| @@ -1,8 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | ### make-dist: create an Emacs distribution tar file from current srcdir | 2 | ### make-dist: create an Emacs distribution tar file from current srcdir |
| 3 | 3 | ||
| 4 | ## Copyright (C) 1995, 1997-1998, 2000-2013 Free Software Foundation, | 4 | ## Copyright (C) 1995, 1997-1998, 2000-2013 Free Software Foundation, Inc. |
| 5 | ## Inc. | ||
| 6 | 5 | ||
| 7 | ## This file is part of GNU Emacs. | 6 | ## This file is part of GNU Emacs. |
| 8 | 7 | ||
| @@ -51,6 +50,7 @@ clean_up=no | |||
| 51 | make_tar=no | 50 | make_tar=no |
| 52 | default_gzip=gzip | 51 | default_gzip=gzip |
| 53 | newer="" | 52 | newer="" |
| 53 | with_tests=no | ||
| 54 | 54 | ||
| 55 | while [ $# -gt 0 ]; do | 55 | while [ $# -gt 0 ]; do |
| 56 | case "$1" in | 56 | case "$1" in |
| @@ -102,6 +102,12 @@ while [ $# -gt 0 ]; do | |||
| 102 | check=no | 102 | check=no |
| 103 | ;; | 103 | ;; |
| 104 | 104 | ||
| 105 | ## Include the test/ directory. | ||
| 106 | ## This option is mainly for the hydra build server. | ||
| 107 | "--tests") | ||
| 108 | with_tests=yes | ||
| 109 | ;; | ||
| 110 | |||
| 105 | "--help") | 111 | "--help") |
| 106 | echo "Usage: ${progname} [options]" | 112 | echo "Usage: ${progname} [options]" |
| 107 | echo "" | 113 | echo "" |
| @@ -115,6 +121,7 @@ while [ $# -gt 0 ]; do | |||
| 115 | echo " --no-update don't recompile or do analogous things" | 121 | echo " --no-update don't recompile or do analogous things" |
| 116 | echo " --snapshot same as --clean-up --no-update --tar --no-check" | 122 | echo " --snapshot same as --clean-up --no-update --tar --no-check" |
| 117 | echo " --tar make a tar file" | 123 | echo " --tar make a tar file" |
| 124 | echo " --tests include the test/ directory" | ||
| 118 | echo "" | 125 | echo "" |
| 119 | exit 0 | 126 | exit 0 |
| 120 | ;; | 127 | ;; |
| @@ -294,7 +301,7 @@ for subdir in site-lisp \ | |||
| 294 | build-aux build-aux/snippet \ | 301 | build-aux build-aux/snippet \ |
| 295 | src src/bitmaps lib lib-src oldXMenu lwlib \ | 302 | src src/bitmaps lib lib-src oldXMenu lwlib \ |
| 296 | nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \ | 303 | nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \ |
| 297 | `find etc lisp admin -type d` \ | 304 | `find etc lisp admin test -type d` \ |
| 298 | doc doc/emacs doc/misc doc/man doc/lispref doc/lispintro \ | 305 | doc doc/emacs doc/misc doc/man doc/lispref doc/lispintro \ |
| 299 | info m4 msdos \ | 306 | info m4 msdos \ |
| 300 | nextstep nextstep/templates \ | 307 | nextstep nextstep/templates \ |
| @@ -305,6 +312,13 @@ for subdir in site-lisp \ | |||
| 305 | nextstep/GNUstep/Emacs.base \ | 312 | nextstep/GNUstep/Emacs.base \ |
| 306 | nextstep/GNUstep/Emacs.base/Resources | 313 | nextstep/GNUstep/Emacs.base/Resources |
| 307 | do | 314 | do |
| 315 | |||
| 316 | if [ "$with_tests" != "yes" ]; then | ||
| 317 | case $subdir in | ||
| 318 | test*) continue ;; | ||
| 319 | esac | ||
| 320 | fi | ||
| 321 | |||
| 308 | ## site-lisp for in-place installs (?). | 322 | ## site-lisp for in-place installs (?). |
| 309 | [ "$subdir" = "site-lisp" ] || [ -d "$subdir" ] || \ | 323 | [ "$subdir" = "site-lisp" ] || [ -d "$subdir" ] || \ |
| 310 | echo "WARNING: $subdir not found, making anyway" | 324 | echo "WARNING: $subdir not found, making anyway" |
| @@ -447,6 +461,17 @@ for f in `find admin -type f`; do | |||
| 447 | ln $f $tempdir/$f | 461 | ln $f $tempdir/$f |
| 448 | done | 462 | done |
| 449 | 463 | ||
| 464 | if [ "$with_tests" = "yes" ]; then | ||
| 465 | echo "Making links to \`test' and its subdirectories" | ||
| 466 | for f in `find test -type f`; do | ||
| 467 | case $f in | ||
| 468 | test/automated/flymake/warnpred/a.out) continue ;; | ||
| 469 | test/automated/Makefile) continue ;; | ||
| 470 | esac | ||
| 471 | ln $f $tempdir/$f | ||
| 472 | done | ||
| 473 | fi | ||
| 474 | |||
| 450 | echo "Making links to \`etc' and its subdirectories" | 475 | echo "Making links to \`etc' and its subdirectories" |
| 451 | for f in `find etc -type f`; do | 476 | for f in `find etc -type f`; do |
| 452 | case $f in | 477 | case $f in |