Skip to content

Commit

Permalink
[cmake] removes underscore in builtin APIs file
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jun 18, 2014
1 parent b5b864e commit b998bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/QsciAPI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ FOREACH(apiFile qgis.core.api qgis.gui.api qgis.analysis.api qgis.networkanalysi
IF(EXISTS "${api}")
FILE(READ "${api}" FILE_CONTENT)
STRING(REGEX REPLACE "([^\n]+)" "qgis.\\1" MODIFIED_CONTENT "${FILE_CONTENT}")
FILE(APPEND "${QGIS_PYTHON_API_FILE}" "${MODIFIED_CONTENT}")
STRING(REPLACE "qgis._" "qgis." REPLACE_CONTENT "${MODIFIED_CONTENT}")
FILE(APPEND "${QGIS_PYTHON_API_FILE}" "${REPLACE_CONTENT}")
ENDIF(EXISTS "${api}")
ENDFOREACH(apiFile)

0 comments on commit b998bb2

Please sign in to comment.