aboutsummaryrefslogtreecommitdiffstats
path: root/make-dist
diff options
context:
space:
mode:
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 788dca3462c..986f784164c 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
@@ -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
307do 314do
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
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