123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #! /bin/sh
- required=emacs
- . test-init.sh
- cat > Makefile.am << 'EOF'
- lisp_LISP = am-one.el am-two.el am-three.el
- EXTRA_DIST = am-one.el am-two.el
- am-three.el:
- echo "(provide 'am-three)" > $@
- CLEANFILES = am-three.el
- EOF
- cat >> configure.ac << 'EOF'
- AM_PATH_LISPDIR
- AC_OUTPUT
- EOF
- echo "(require 'am-two)" > am-one.el
- echo "(require 'am-three) (provide 'am-two)" > am-two.el
- $ACLOCAL
- $AUTOCONF
- $AUTOMAKE --add-missing
- ./configure --prefix="$(pwd)/_inst"
- $MAKE
- test -f am-one.elc
- test -f am-two.elc
- test -f am-three.elc
- rm -f am-one.elc
- $MAKE
- test -f am-one.elc
- $MAKE install
- find _inst
- for dir in lib/emacs lib/xemacs share/emacs share/xemacs :; do
- if test $dir = :; then
- exit 1
- elif test -d _inst/$dir/site-lisp; then
- break
- fi
- done
- test -f _inst/$dir/site-lisp/am-one.el
- test -f _inst/$dir/site-lisp/am-one.elc
- test -f _inst/$dir/site-lisp/am-two.el
- test -f _inst/$dir/site-lisp/am-two.elc
- test -f _inst/$dir/site-lisp/am-three.el
- test -f _inst/$dir/site-lisp/am-three.elc
- $MAKE uninstall
- find _inst | $EGREP '\.elc?$' && exit 1
- $MAKE distcheck
- :
|