#!/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.
make_tar=no
default_gzip=gzip
newer=""
+with_tests=no
while [ $# -gt 0 ]; do
case "$1" in
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 ""
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
;;
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 \
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"
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