/usr/share/qbs/modules/lex_yacc/lexyacc.js is in qbs-common 1.10.1+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | var FileInfo = require("qbs.FileInfo");
function outputFilePath(product, input, posixFileName, forYacc)
{
var outDir = product.moduleProperty("lex_yacc", "outputDir");
var fileName;
if (product.moduleProperty("lex_yacc", "uniqueSymbolPrefix")) {
fileName = input.baseName;
if (forYacc)
fileName += posixFileName.slice(1);
else
fileName += posixFileName;
} else {
fileName = posixFileName;
}
return FileInfo.joinPaths(outDir, fileName);
}
|