-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various small improvements #698
Conversation
A bunch of minor changes: * Anchor existing ignore rules at repository root for less ambiguity. * Also ignore 'TeXworks.plist' that is auto-generated on OS X. * Also ignore build directory suggested by documentation. * Also ignore files downloaded/extracted by 'package' target on OS X. * Group ignores logically and add comments.
The commit date substituted by Git can contain a plus sign in case of positive time zone offsets, e.g. "1970-01-01 12:00:00 +0200". Those were not detected as valid by the replacement pattern, making the replacement fail (i.e. not stripping "#define GIT_COMMIT_DATE" and the quotes).
Plug-ins need special linker flags on OS X to be built successfully. CMake already distinguishes between plug-ins (called "modules") and ordinary shared libraries, so use that.
Not clear why we should be picking up "LDFLAGS" from the environment and why we should overwrite "CMAKE_MODULE_LINKER_FLAGS" with the contents of "CMAKE_MODULE_LINKER_FLAGS_INIT". Now extend "CMAKE_MODULE_LINKER_FLAGS" instead.
Most of the commits look good. I'm not sure if using MODULE has any side-effects on Linux or Windows (default seems to be SHARED), I'll have to test before merging when I have time.
|
The file 'trans/TeXworks_trans.pro' is auto-generated, but kept under version control to ease the work of translators. Make sure that the order of the entries in the generated file is not affected by globbing order which depends on the file and operating system. This should prevent future spurious changes to this file. Also updates 'trans/TeXworks_trans.pro' according to the above logic.
These project files are unmaintained and (at least on OS X) completely broken. CMake is now the only supported build system.
Regarding MODULE: The default is either Regarding One more thing: I also noticed, that while being obsoleted by CMake, there still existed project files for |
Thanks for the work - merged. |
This is a set of various small improvements, best viewed commit by commit. I was not feeling like creating a bunch of different pull requests for these, but could of course do this, if this is preferred.
Tested on my Mac running OS X 10.10 and everything still worked as it should (or improved, namely plug-in support). I cannot verify these changes on Windows/Linux, but hopefully someone else can.
I'm not entirely sure about commit UniqMartin/texworks@0e5759e. For me, the file
trans/TeXworks_trans.pro
was always regenerated when runningcmake
, but with different contents (files referenced therein in a different order), so I wanted to get rid of this distraction. But maybe its presence in the repository serves a purpose. :)