view lisp/w3/custom-check @ 44:8d2a9b52c682 r19-15prefinal

Import from CVS: tag r19-15prefinal
author cvs
date Mon, 13 Aug 2007 08:55:10 +0200
parents c53a95d3c46d
children 6a22abad6937
line wrap: on
line source

#!/bin/sh
EMACS=${1:-emacs}
if [ -z "$HOME" ]; then
    HOME=`(cd ; pwd)`
fi

WITH=`   ${EMACS} -batch -l ${HOME}/.emacs             -eval '(princ (file-truename (locate-library "custom")))'`
WITHOUT=`${EMACS} -batch -q -no-site-file -l docomp.el -eval '(princ (file-truename (locate-library "custom")))'`

if [ "${WITH}" = "${WITHOUT}" ]; then
    exit 0
else
    echo "WARNING -- WARNING -- WARNING"
    echo "Found custom in different places with and without ${HOME}/.emacs"
    echo
    echo "This could cause potential problems.  Please recompile with"
    echo "the environment variable WIDGETDIR set correctly.  Try this"
    echo "command:"
    echo "make WIDGETDIR=${WITH}"
    exit 1
fi