summaryrefslogtreecommitdiffstats
path: root/Modules/FindLATEX.cmake
diff options
context:
space:
mode:
authorKitware Robot <kwrobot@kitware.com>2012-08-13 17:47:32 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-13 18:19:16 (GMT)
commit77543bde41b0e52c3959016698b529835945d62d (patch)
treeff63e5fbec326c4a5d821e7496c6d2cb52f75b92 /Modules/FindLATEX.cmake
parent7bbaa4283de26864b2e55e819db0884771585467 (diff)
downloadCMake-77543bde41b0e52c3959016698b529835945d62d.zip
CMake-77543bde41b0e52c3959016698b529835945d62d.tar.gz
CMake-77543bde41b0e52c3959016698b529835945d62d.tar.bz2
Convert CMake-language commands to lower case
Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
Diffstat (limited to 'Modules/FindLATEX.cmake')
-rw-r--r--Modules/FindLATEX.cmake46
1 files changed, 23 insertions, 23 deletions
diff --git a/Modules/FindLATEX.cmake b/Modules/FindLATEX.cmake
index 7997ae9..0202727 100644
--- a/Modules/FindLATEX.cmake
+++ b/Modules/FindLATEX.cmake
@@ -24,97 +24,97 @@
# (To distribute this file outside of CMake, substitute the full
# License text for the above reference.)
-IF (WIN32)
+if (WIN32)
# Try to find the MikTex binary path (look for its package manager).
- FIND_PATH(MIKTEX_BINARY_PATH mpm.exe
+ find_path(MIKTEX_BINARY_PATH mpm.exe
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\MiK\\MiKTeX\\CurrentVersion\\MiKTeX;Install Root]/miktex/bin"
DOC
"Path to the MikTex binary directory."
)
- MARK_AS_ADVANCED(MIKTEX_BINARY_PATH)
+ mark_as_advanced(MIKTEX_BINARY_PATH)
# Try to find the GhostScript binary path (look for gswin32).
- GET_FILENAME_COMPONENT(GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_8_00
+ get_filename_component(GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_8_00
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\AFPL Ghostscript\\8.00;GS_DLL]" PATH
)
- GET_FILENAME_COMPONENT(GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_7_04
+ get_filename_component(GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_7_04
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\AFPL Ghostscript\\7.04;GS_DLL]" PATH
)
- FIND_PATH(GHOSTSCRIPT_BINARY_PATH gswin32.exe
+ find_path(GHOSTSCRIPT_BINARY_PATH gswin32.exe
${GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_8_00}
${GHOSTSCRIPT_BINARY_PATH_FROM_REGISTERY_7_04}
DOC "Path to the GhostScript binary directory."
)
- MARK_AS_ADVANCED(GHOSTSCRIPT_BINARY_PATH)
+ mark_as_advanced(GHOSTSCRIPT_BINARY_PATH)
- FIND_PATH(GHOSTSCRIPT_LIBRARY_PATH ps2pdf13.bat
+ find_path(GHOSTSCRIPT_LIBRARY_PATH ps2pdf13.bat
"${GHOSTSCRIPT_BINARY_PATH}/../lib"
DOC "Path to the GhostScript library directory."
)
- MARK_AS_ADVANCED(GHOSTSCRIPT_LIBRARY_PATH)
+ mark_as_advanced(GHOSTSCRIPT_LIBRARY_PATH)
-ENDIF (WIN32)
+endif (WIN32)
-FIND_PROGRAM(LATEX_COMPILER
+find_program(LATEX_COMPILER
NAMES latex
PATHS ${MIKTEX_BINARY_PATH}
/usr/bin
)
-FIND_PROGRAM(PDFLATEX_COMPILER
+find_program(PDFLATEX_COMPILER
NAMES pdflatex
PATHS ${MIKTEX_BINARY_PATH}
/usr/bin
)
-FIND_PROGRAM(BIBTEX_COMPILER
+find_program(BIBTEX_COMPILER
NAMES bibtex
PATHS ${MIKTEX_BINARY_PATH}
/usr/bin
)
-FIND_PROGRAM(MAKEINDEX_COMPILER
+find_program(MAKEINDEX_COMPILER
NAMES makeindex
PATHS ${MIKTEX_BINARY_PATH}
/usr/bin
)
-FIND_PROGRAM(DVIPS_CONVERTER
+find_program(DVIPS_CONVERTER
NAMES dvips
PATHS ${MIKTEX_BINARY_PATH}
/usr/bin
)
-FIND_PROGRAM(DVIPDF_CONVERTER
+find_program(DVIPDF_CONVERTER
NAMES dvipdfm dvipdft dvipdf
PATHS ${MIKTEX_BINARY_PATH}
/usr/bin
)
-IF (WIN32)
- FIND_PROGRAM(PS2PDF_CONVERTER
+if (WIN32)
+ find_program(PS2PDF_CONVERTER
NAMES ps2pdf14.bat
PATHS ${GHOSTSCRIPT_LIBRARY_PATH}
)
-ELSE (WIN32)
- FIND_PROGRAM(PS2PDF_CONVERTER
+else (WIN32)
+ find_program(PS2PDF_CONVERTER
NAMES ps2pdf14 ps2pdf
)
-ENDIF (WIN32)
+endif (WIN32)
-FIND_PROGRAM(LATEX2HTML_CONVERTER
+find_program(LATEX2HTML_CONVERTER
NAMES latex2html
PATHS ${MIKTEX_BINARY_PATH}
/usr/bin
)
-MARK_AS_ADVANCED(
+mark_as_advanced(
LATEX_COMPILER
PDFLATEX_COMPILER
BIBTEX_COMPILER