emacs-ipython-notebook/tools/update-autoloads.sh

22 lines
488 B
Bash
Raw Normal View History

2012-09-01 20:34:46 +02:00
#!/bin/sh
# Update ein-loaddefs.el
#
# --commit Automatically commit updated changes in ein-loaddefs.el
2012-09-01 20:34:46 +02:00
if [ -z "$EMACS" ]; then
EMACS="$(which emacs)"
fi
# To omit slashes in the second FILE argument, need to go to the
# directory.
cd lisp || exit $?
$EMACS -Q -batch --eval \
"(setq generated-autoload-file \"$(pwd)/ein-loaddefs.el\")" \
-f batch-update-autoloads .
if [ "$1" = "--commit" ]; then
git commit --message "Update ein-loaddefs.el" ein-loaddefs.el
fi