mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
21 lines
488 B
Bash
Executable file
21 lines
488 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Update ein-loaddefs.el
|
|
#
|
|
# --commit Automatically commit updated changes in ein-loaddefs.el
|
|
|
|
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
|