29416875e0
example for remove_trailing_whitespaces.sh: " testing \n" --> " testing\n" examples for remove_unnecessary_spaces.py: "<testing> foobar foobar" --> "<testing>foobar foobar" "foobar foobar </testing>" --> "foobar foobar</testing>" Change-Id: Ie15a7a1491bf412ff893c84e76061ef623581145
14 lines
399 B
Bash
Executable File
14 lines
399 B
Bash
Executable File
#!/bin/sh
|
|
|
|
## copyright: B1 Systems GmbH <info@b1-systems.de>, 2013.
|
|
## author: Christian Berendt <berendt@b1-systems.de>, 2013.
|
|
## license: Apache License, Version 2.0
|
|
|
|
# Call ./tools/cleanup/remove_trailing_whitespaces.sh in the
|
|
# root of openstack-manuals.
|
|
|
|
files=$(find doc/src/docbkx -name *.xml -not -name pom.xml)
|
|
for file in $files; do
|
|
sed -i -e 's/[[:space:]]*$//' $file
|
|
done
|