blob: eace491869e62bdcb9fa68bd7d4cac51f12425ee [file] [log] [blame]
#!/bin/sh
#
# Apply verbboxcheck.pl for all .tex files
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, you can access it online at
# http://www.gnu.org/licenses/gpl-2.0.html.
#
# Copyright (C) Akira Yokosawa, 2016
#
# Authors: Akira Yokosawa <akiyks@gmail.com>
# check if companion script exists
if ! test -e utilities/verbboxcheck.pl
then
echo "utilities/verrboxcheck.pl not found."
exit 1
fi
texfiles=`find . -name '*.tex' -print`
for i in $texfiles
do
basename="${i%.tex}"
# echo $basename
perl ./utilities/verbboxcheck.pl $basename.tex
done