This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/.circleci/validoc/export

29 lines
761 B
Text
Raw Normal View History

#!/usr/bin/env bash
## Export script for .org validation.
##
## Copyright (c) 2012-2014 Sylvain Benner
## Copyright (c) 2014-2018 Sylvain Benner & Contributors
##
## Author: Eugene Yaremenko
## URL: https://github.com/syl20bnr/spacemacs
##
## This file is not part of GNU Emacs.
##
## License: GPLv3
skip_when_branch_update
fail_when_undefined_pr_number
2020-06-21 13:07:13 +00:00
select_changed_orgs
if [ ${#changed_f_as_args[@]} -ne 0 ]; then
emacs -batch -l /opt/spacetools/spacedoc/sdnize/sdnize.el -no-site-file \
-q /root/.emacs.d/ /tmp/exported/ \
$(printf "%s " "${changed_f_as_args[@]}")
if [ $? -ne 0 ]; then
echo "Documentation needs some fixing ;)"
exit 1
fi
else
echo "This commit doesn't change documentation files."
fi