Mercurial > hg > xemacs-beta
comparison lisp/w3/custom-check @ 114:8619ce7e4c50 r20-1b9
Import from CVS: tag r20-1b9
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:21:54 +0200 |
parents | c53a95d3c46d |
children | 8d2a9b52c682 9f59509498e1 |
comparison
equal
deleted
inserted
replaced
113:2ec2fe4a4c89 | 114:8619ce7e4c50 |
---|---|
1 #!/bin/sh | |
2 EMACS=${1:-emacs} | |
3 if [ -z "$HOME" ]; then | |
4 HOME=`(cd ; pwd)` | |
5 fi | |
6 | |
7 if [ -n "$WIDGETDIR" ]; then | |
8 echo "WIDGETDIR environment variable set, good good" | |
9 exit 0 | |
10 fi | |
11 | |
12 WITH=`${EMACS} -batch -l ${HOME}/.emacs -eval '(princ (locate-library "custom"))' | cut -f3- |xargs dirname` | |
13 WITHOUT=`${EMACS} -batch -eval '(princ (locate-library "custom"))' | cut -f3- |xargs dirname` | |
14 | |
15 if [ "${WITH}" = "${WITHOUT}" ]; then | |
16 exit 0 | |
17 else | |
18 echo "WARNING -- WARNING -- WARNING" | |
19 echo "Found custom in different places with and without ${HOME}/.emacs" | |
20 echo | |
21 echo "This could cause potential problems. Please recompile with" | |
22 echo "the environment variable WIDGETDIR set correctly. Try this" | |
23 echo "command:" | |
24 echo "make WIDGETDIR=${WITH}" | |
25 exit 1 | |
26 fi |