Skip to content

Commit

Permalink
master: check_invisible.sh: fix for macOS.
Browse files Browse the repository at this point in the history
fix some spelling warnings generated by newer version of xrst.
  • Loading branch information
bradbell committed Jul 13, 2024
1 parent 9e49ee1 commit dbf9eaa
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 12 deletions.
14 changes: 11 additions & 3 deletions bin/check_invisible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e -u
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: Bradley M. Bell <[email protected]>
# SPDX-FileContributor: 2020-22 Bradley M. Bell
# SPDX-FileContributor: 2020-24 Bradley M. Bell
# -----------------------------------------------------------------------------
if [ "$0" != "bin/check_invisible.sh" ]
then
Expand All @@ -19,13 +19,21 @@ else
echo 'usage: bin/check_invisible [all]'
exit 1
fi
#
# sed_path
if which gsed >& /dev/null
then
sed_path=$(which gsed)
else
sed_path=$(which sed)
fi
# ----------------------------------------------------------------------------
# file_list
if [ "$all" == 'true' ]
then
file_list=$(git ls-files)
else
file_list=$(git status --porcelain | sed -e 's|^...||')
file_list=$(git status --porcelain | $sed_path -e 's|^...||')
fi
#
# sed.$$
Expand All @@ -41,7 +49,7 @@ for file in $file_list
do
if [ -f "$file" ]
then
sed -f sed.$$ $file > copy.$$
$sed_path -f sed.$$ $file > copy.$$
if ! diff $file copy.$$ > diff.$$
then
echo "original (<) invisible white space removed (>)"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ build-backend = 'setuptools.build_meta'
# -----------------------------------------------------------------------------
[project]
name = 'xrst'
version = '2024.6.25'
version = '2024.7.13'
description = 'Extract RST files from source code and run Sphinx'
readme = 'readme.md'
requires-python = '>=3.0'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name = 'xrst',
version = '2024.6.25',
version = '2024.7.13',
description = 'Extract RST files from source code and run Sphinx',
license = 'GPL-3.0-or-later',
keywords = 'sphinx rst documentation source',
Expand Down
2 changes: 1 addition & 1 deletion test_rst/check_input_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Prototype
*********

.. literalinclude:: ../../xrst/check_input_files.py
:lines: 63-77,187-192
:lines: 62-76,186-191
:language: py

.. index:: config_file
Expand Down
2 changes: 1 addition & 1 deletion test_rst/get_conf_dict.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Prototype
*********

.. literalinclude:: ../../xrst/get_conf_dict.py
:lines: 507-509,700-702
:lines: 504-506,697-699
:language: py

.. index:: config_file
Expand Down
1 change: 0 additions & 1 deletion xrst/check_input_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
# {xrst_begin check_input_files dev}
# {xrst_spell
# conf
# config
# }
# {xrst_comment_ch #}
#
Expand Down
3 changes: 0 additions & 3 deletions xrst/get_conf_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,6 @@ def iterable2string(iterable) :
return string
#
# {xrst_begin get_conf_dict dev}
# {xrst_spell
# config
# }
# {xrst_comment_ch #}
#
# Get Configuration Dictionary
Expand Down
2 changes: 1 addition & 1 deletion xrst/run_xrst.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def fix_latex(latex_dir, project_name) :
import xrst
#
# version
version = '2024.6.25'
version = '2024.7.13'
#
def run_xrst() :
#
Expand Down

0 comments on commit dbf9eaa

Please sign in to comment.