Browse Source

Remove tools/glossary-sort.sh

The glossary is imported automatically from openstack-manuals, no need
to test that it is sorted as this is done in openstack-manuals already.

Change-Id: If57bda8c5f83d7c833387f0c6ee7ea570d785dac
Andreas Jaeger 5 months ago
parent
commit
d12fd3653f
2 changed files with 0 additions and 26 deletions
  1. 0
    25
      tools/glossary-sort.sh
  2. 0
    1
      tox.ini

+ 0
- 25
tools/glossary-sort.sh View File

@@ -1,25 +0,0 @@
1
-#!/bin/bash -xe
2
-
3
-# Check that doc/common/glossary entries are alphabetized and prints
4
-# list of entries that should be sorted.
5
-
6
-# Cross-platform (Mac and Linux) commands to make a temporary working directory
7
-thetmpdir=`mktemp -d 2>/dev/null || mktemp -d -t 'thetmpdir'`
8
-trap "rm -rf $thetmpdir" EXIT
9
-
10
-pushd $thetmpdir
11
-GLOSSARY=$OLDPWD/doc/source/common/glossary.rst
12
-
13
-grep '^   [a-zA-Z0-9]' $GLOSSARY > glossary_entries
14
-
15
-LC_ALL=C sort --ignore-case glossary_entries -o glossary_entries.sorted
16
-
17
-if ! diff glossary_entries glossary_entries.sorted > glossary_entries.diff; then
18
-    echo "The following entries should be alphabetized: "
19
-    cat glossary_entries.diff | grep -e '> '
20
-    exit 1
21
-else
22
-    echo "Glossary alphabetized."
23
-fi
24
-
25
-popd

+ 0
- 1
tox.ini View File

@@ -14,4 +14,3 @@ deps =
14 14
 commands =
15 15
   doc8 doc/source -e txt -e rst
16 16
   sphinx-build -E -W -b html doc/source doc/build/html
17
-  {toxinidir}/tools/glossary-sort.sh

Loading…
Cancel
Save