aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
authorGlenn Morris2013-07-24 23:57:25 -0700
committerGlenn Morris2013-07-24 23:57:25 -0700
commitef75383cd2b764f8df0b84f780adfe0bd552457c (patch)
treef344609ca95c937dea143d8d12334239311a950a /make-dist
parentcb3a56d2389eb6fe0635bd28b863c3a0734279c6 (diff)
downloademacs-ef75383cd2b764f8df0b84f780adfe0bd552457c.tar.gz
emacs-ef75383cd2b764f8df0b84f780adfe0bd552457c.zip
* make-dist: Add a --tests option, to include test/.
Diffstat (limited to 'make-dist')
-rwxr-xr-xmake-dist31
1 files changed, 28 insertions, 3 deletions
diff --git a/make-dist b/make-dist
index 34e5c3f75e1..75e4b22b238 100755
--- a/make-dist
+++ b/make-dist
@@ -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
51make_tar=no 50make_tar=no
52default_gzip=gzip 51default_gzip=gzip
53newer="" 52newer=""
53with_tests=no
54 54
55while [ $# -gt 0 ]; do 55while [ $# -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
302do 309do
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
448done 462done
449 463
464if [ "$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
473fi
474
450echo "Making links to \`etc' and its subdirectories" 475echo "Making links to \`etc' and its subdirectories"
451for f in `find etc -type f`; do 476for f in `find etc -type f`; do
452 case $f in 477 case $f in