Re: [urgent] update-fontlang new checks
Hi,
Norbert Preining <preining@logic.at> wrote:
> Thanks a lot. Last version is in svn. For completeness here the diff.
OK, I made a small additional commit:
* bump version number
* Fix long lines and add capitals...
Here's the diff. Should be OK now, and I'm leaving, anyway!
Index: scripts/update-fontlang
===================================================================
--- scripts/update-fontlang (revision 1763)
+++ scripts/update-fontlang (working copy)
@@ -19,7 +19,7 @@
# Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-version="0.9"
+version="1.0"
progname=$(basename "$0")
SYSPATH_BASE=/var/lib/texmf
@@ -273,15 +273,18 @@
fi
fi
- # it could be that there is a DEFAULT_OUTPUTFILE_BASENAME file
- # in TEXMFCONFIG, which would be found instead of the
+ # It could be that there is a DEFAULT_OUTPUTFILE_BASENAME file
+ # in TEXMFCONFIG, which would be found by kpathsea instead of the
# output_file. So we check for this and give a warning in case
# the created file would be shadowed.
if [ $syswide_mode = 0 ] && [ $output_file_specified = 0 ]; then
OLDIFS="$IFS"
IFS=:
for d in "$texmfconfig"; do
- if [ ! "$d/$PATH_COMPONENT/$DEFAULT_OUTPUTFILE_BASENAME" = "$output_file" ] && [ -f "$d/$PATH_COMPONENT/$DEFAULT_OUTPUTFILE_BASENAME" ] ; then
+ if [ ! "$d/$PATH_COMPONENT/$DEFAULT_OUTPUTFILE_BASENAME" \
+ = "$output_file" ] \
+ && [ -f "$d/$PATH_COMPONENT/$DEFAULT_OUTPUTFILE_BASENAME" ];
+ then
printf "\
You are about to generate the file
$output_file
@@ -290,7 +293,7 @@
which will shadow the former. We'll continue generating the first
file, but to allow TeX and friends to find it, you'll have to remove the
second one.\n"
- # don't break out as we want to warn the user for *every*
+ # Don't break out as we want to warn the user for *every*
# shadowing file!
fi
done
--
Florent
Reply to: