summaryrefslogtreecommitdiffstats
path: root/src/extension/dependency.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-10-16Extensions: only check existence for interpreted scripts.Patrick Storz1-8/+17
This is for backwards-compatibility with older .inx files that used to redundantly request a dependency on their own interpreted script and did so with type="executable". However, in practice script files often *don't* have the x-bit set, which fortunately did not cause problems in the past, though, as the check for the x-bit was broken, see 3da7f71e45eb986aef67771b5af3c1e308971cff
2019-10-15Extensions: Fix file test when checking dependencies by typePatrick Storz1-20/+42
For "executable" files only existence was checked. (Glib::file_test needs a single FileTest) Apply this properly when checking script <command>s and xslt <file>s - interpreted scripts and xslt files -> only check existence - un-interpreted scripts -> check for executable file For Windows workarounds are implemented to yield desirable behavior: - as there is no executable bit, only check existence - as executables usually come with an extensions, scan for those as well.
2019-10-14Extensions: Improve logic to lookup script extensionsPatrick Storz1-33/+75
- Use identical logic for looking up <dependency>s and <command>s. - Remove duplicate (but inconsistent and incomplete) logic from script.cpp that was used to search for the <command> again - Remove <check> element from .inx format It seems unused (at the very least by core extensions) and redundant to <dependency> checking - Deprecate the <command>-specific "reldir" attribute. Consistently use the functionally identical "location" attribute that was only used for <dependency>s before - Introduce the new relative location value location="inx", which looks up <dependencies> and <command>s relative to the .inx file's location.
2019-09-26Extensions: Fix filename encoding issues in error loggingPatrick Storz1-12/+10
(std::ostream is not properly portable unfortunately)
2018-11-08Clarify licensesMax Gaukler1-1/+2
- add license headers to everything - convert a few files from public domain or LGPL2.1+ to GPL2+ - some archaeology to clarify which files are from which library
2018-10-06Misc. typosluz.paz1-1/+1
Found via `codespell`
2018-10-01Remove #include "config.h" wherever possibleEduard Braun1-4/+0
2018-06-19Run clang-tidy’s modernize-redundant-void-arg pass.Emmanuel Gil Peyrot1-2/+2
2018-06-18Run clang-tidy’s modernize-use-nullptr pass.Emmanuel Gil Peyrot1-12/+12
This replaces all NULL or 0 with nullptr when assigned to or returned as a pointer.
2018-05-04Revert "Fix include order with clang-tidy check llvm-include-order"Marc Jeanmougin1-4/+4
This reverts commit bba4ff6672494fab59286b50f6c645ad62a47e60.
2018-04-29Fix include order with clang-tidy check llvm-include-orderMarc Jeanmougin1-4/+4
2018-02-10Misc. typosluz.paz1-1/+1
Found via `codespell`
2018-01-08Misc. typosluz.paz1-1/+1
Found via `codespell`
2017-07-02Move directory scanners to new get_filenames(...) callsMartin Owens1-6/+6
2016-08-03Removed unused includes, decreased compilation time. Once againAdrian Boguszewski1-3/+1
(bzr r15034)
2016-07-28Reverted changes to r15024 after many building problemsAdrian Boguszewski1-1/+3
(bzr r15027)
2016-07-28Removed unused includes, decrease compilation timeAdrian Boguszewski1-3/+1
(bzr r15025)
2016-04-12fixed naming of methods. External extensions can now be other module types.Moritz Eberl1-1/+1
(bzr r14761.1.2)
2016-04-11Added a mechanism to load c++ extensions dynamically.Moritz Eberl1-0/+12
(bzr r14761.1.1)
2014-06-11Extensions. Fix for Bug #505920 (inkscape loads extension even if the script ↵Nicolas Dufour1-6/+14
specified in <command> doesn't exist). Fixed bugs: - https://launchpad.net/bugs/505920 (bzr r13421)
2013-03-11cppcheckKris De Gussem1-3/+1
(bzr r12193)
2013-02-11A couple of forward declarationsAlex Valavanis1-0/+2
(bzr r12119)
2012-05-01extensions: string class usageKris De Gussem1-17/+7
(bzr r11313)
2012-05-01fix extension path scan (Bug #801568 ; patch of Patrick Monnerat)Kris De Gussem1-4/+2
(bzr r11312)
2012-01-03Janitorial tasks: get rid of deprecated repr wrapper functionsKris De Gussem1-1/+1
(bzr r10830)
2011-10-04More forward.h purging.Jon A. Cruz1-0/+1
(bzr r10665)
2009-02-13Remove last remnants of ancient plugin support. Tidy up acinclude.m4.Krzysztof Kosi??ski1-15/+0
(bzr r7278)
2008-04-29Uniconvertor import extension changes for Win32 - Fixes LP# 197617Mike Pittman1-2/+14
(bzr r5546)
2006-11-19string fixes from bug 1516157bulia byak1-1/+1
(bzr r1991)
2006-09-12Eek! Copyright message forgotten :( . Can we think up a standard format for ↵Johan B. C. Engelen1-2/+3
specifying copyrights and/or automate this in SVN? (bzr r1703)
2006-09-12Extension dependency-check now also finds win32 executables if ".exe" is ↵Johan B. C. Engelen1-0/+9
omitted in inx-file. (bzr r1702)
2006-06-28do some include changes more correctlyRalf Stephan1-6/+3
(bzr r1311)
2006-06-24more compiler hints for gtk-2.4 systems to cope with glibmm/i18n.hRalf Stephan1-0/+4
(bzr r1276)
2006-03-06Replace std::endl in lots of places with plain old '\n', with just a single ↵Peter Moulder1-5/+7
std::flush per dependency. (bzr r211)