Commit 5bb8839f authored by Mark Nauwelaerts's avatar Mark Nauwelaerts

build-plugin: perform basedir substitution in build directory

parent 57818959
......@@ -830,6 +830,13 @@ bool KateBuildView::buildCurrentTarget()
}
}
// a single target can serve to build lots of projects with similar directory layout
if (m_projectPluginView) {
QFileInfo baseDir = m_projectPluginView->property("projectBaseDir").toString();
dir.replace(QStringLiteral("%B"), baseDir.absoluteFilePath());
dir.replace(QStringLiteral("%b"), baseDir.baseName());
}
// Check if the command contains the file name or directory
if (buildCmd.contains(QStringLiteral("%f")) ||
buildCmd.contains(QStringLiteral("%d")) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment