diff options
| author | Glenn Morris | 2013-07-24 23:57:25 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-07-24 23:57:25 -0700 |
| commit | ef75383cd2b764f8df0b84f780adfe0bd552457c (patch) | |
| tree | f344609ca95c937dea143d8d12334239311a950a | |
| parent | cb3a56d2389eb6fe0635bd28b863c3a0734279c6 (diff) | |
| download | emacs-ef75383cd2b764f8df0b84f780adfe0bd552457c.tar.gz emacs-ef75383cd2b764f8df0b84f780adfe0bd552457c.zip | |
* make-dist: Add a --tests option, to include test/.
| -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-24 Glenn Morris <rgm@gnu.org> | 5 | 2013-07-24 Glenn Morris <rgm@gnu.org> |
| 2 | 6 | ||
| 3 | * configure.ac: Use self-descriptive tags for AC_CONFIG_COMMANDS. | 7 | * configure.ac: Use self-descriptive tags for AC_CONFIG_COMMANDS. |
| @@ -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 |
| @@ -98,6 +98,12 @@ while [ $# -gt 0 ]; do | |||
| 98 | check=no | 98 | check=no |
| 99 | ;; | 99 | ;; |
| 100 | 100 | ||
| 101 | ## Include the test/ directory. | ||
| 102 | ## This option is mainly for the hydra build server. | ||
| 103 | "--tests") | ||
| 104 | with_tests=yes | ||
| 105 | ;; | ||
| 106 | |||
| 101 | "--help") | 107 | "--help") |
| 102 | echo "Usage: ${progname} [options]" | 108 | echo "Usage: ${progname} [options]" |
| 103 | echo "" | 109 | echo "" |
| @@ -110,6 +116,7 @@ while [ $# -gt 0 ]; do | |||
| 110 | echo " --no-update don't recompile or do analogous things" | 116 | echo " --no-update don't recompile or do analogous things" |
| 111 | echo " --snapshot same as --clean-up --no-update --tar --no-check" | 117 | echo " --snapshot same as --clean-up --no-update --tar --no-check" |
| 112 | echo " --tar make a tar file" | 118 | echo " --tar make a tar file" |
| 119 | echo " --tests include the test/ directory" | ||
| 113 | echo "" | 120 | echo "" |
| 114 | exit 0 | 121 | exit 0 |
| 115 | ;; | 122 | ;; |
| @@ -289,7 +296,7 @@ for subdir in site-lisp \ | |||
| 289 | build-aux build-aux/snippet \ | 296 | build-aux build-aux/snippet \ |
| 290 | src src/bitmaps lib lib-src oldXMenu lwlib \ | 297 | src src/bitmaps lib lib-src oldXMenu lwlib \ |
| 291 | nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \ | 298 | nt nt/inc nt/inc/sys nt/inc/arpa nt/inc/netinet nt/icons \ |
| 292 | `find etc lisp admin -type d` \ | 299 | `find etc lisp admin test -type d` \ |
| 293 | doc doc/emacs doc/misc doc/man doc/lispref doc/lispintro \ | 300 | doc doc/emacs doc/misc doc/man doc/lispref doc/lispintro \ |
| 294 | info m4 msdos \ | 301 | info m4 msdos \ |
| 295 | nextstep nextstep/templates \ | 302 | nextstep nextstep/templates \ |
| @@ -300,6 +307,13 @@ for subdir in site-lisp \ | |||
| 300 | nextstep/GNUstep/Emacs.base \ | 307 | nextstep/GNUstep/Emacs.base \ |
| 301 | nextstep/GNUstep/Emacs.base/Resources | 308 | nextstep/GNUstep/Emacs.base/Resources |
| 302 | do | 309 | do |
| 310 | |||
| 311 | if [ "$with_tests" != "yes" ]; then | ||
| 312 | case $subdir in | ||
| 313 | test*) continue ;; | ||
| 314 | esac | ||
| 315 | fi | ||
| 316 | |||
| 303 | ## site-lisp for in-place installs (?). | 317 | ## site-lisp for in-place installs (?). |
| 304 | [ "$subdir" = "site-lisp" ] || [ -d "$subdir" ] || \ | 318 | [ "$subdir" = "site-lisp" ] || [ -d "$subdir" ] || \ |
| 305 | echo "WARNING: $subdir not found, making anyway" | 319 | 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 |