Commit Graph

37 Commits

Author SHA1 Message Date
Geoff McLane 250ce1c6d0 Issue #190 & #148 - Restore tidyReleaseDate() function.
There was an idea to mark this function deprecated, such that if used the
developer would see a warning. But this was never implemented in a cross
platform way.

So for now revert to circa Jan 2015 when Jim added a build date to the
version.txt file. And now both LIBTIDY_VERSION and RELEASE_DATE macros are
established in CMakeLists.txt, and picked up in version.h.

The idea is the date will now march forward with the version number, side
by side in version.txt. Although have left tidy.c only emitting the
version on the --version command.

After this function has been marked deprecated for several release periods,
only then should consideration be given to potentially removing it.
2015-06-09 12:29:51 +02:00
Geoff McLane d9113957d8 Reverse option wording to reflect new default ON 2015-05-25 13:33:32 +02:00
Geoff McLane efb8e37664 Build both static and shared libraries.
First many other projects do this, and it seems a good choice.

Due mainly to windows where the static and shared libraries have the same
name, appended an 's' to the static library.

The tidy console app will use the static library, since to build the man
page tidy may need to be run before the shared libraries are installed.
And this makes the windows tidy exe a stand-alone app. No DLL install
issue.

This addresses issue #194, and possibly #190
2015-05-24 15:21:30 +02:00
Geoff R. McLane 65d230a167 add documentation target 2015-05-19 16:51:15 +02:00
Geoff R. McLane 221e067f95 Change relative path to absolute so cmake can be run anywhere.
The recommended place to run cmake is in the build/cmake directory,
but have changed a relative path to an absolute path which should
allow cmake to be run ANYWHERE!. See bottom of Issue #193

Also a few other minor tweak to CMakeLists.txt
2015-05-12 14:28:25 +02:00
Geoff McLane d8a4498803 Add user option -DMAN_INSTALL_DIR=path to CMakeLists.txt - see #193
Seems this is required to accomodate different man install directories
used by Slackware, BSD and perhaps others.
2015-05-12 13:20:57 +02:00
Geoff McLane 032bf4264d Issue #193 - install tidy doc in share/man/man1 2015-04-15 15:05:45 +02:00
Geoff McLane a8e98412b5 Issue #192 - no need to check architecture 2015-04-14 02:12:22 +02:00
Geoff McLane 26f1d93379 prepare for changing the lib name 2015-04-02 13:17:14 +02:00
Geoff McLane 17cb520f58 add windows zip binary installer 2015-03-20 13:56:20 +01:00
Geoff R. McLane 12b0fc74a9 Issue #187 - correction for unix man page 2015-03-19 18:06:49 +01:00
Geoff McLane 47df5fddbc Issue #188 - Add some user config items 2015-03-19 16:32:19 +01:00
Geoff R. McLane f4071047e9 Output only to build folder 2015-03-08 12:35:41 +01:00
Jim Derry e0833dc8ab Fixed #183 2015-03-08 15:39:48 +08:00
Jim Derry 08d037b6af Fix for Cmake > 3.0.0 2015-03-08 13:39:46 +08:00
Pedro c013fa97d9 Make man filename into a cmake variable 2015-03-07 22:28:58 +00:00
Pedro 3f8a95601e Make man filename into a cmake variable 2015-03-07 22:27:02 +00:00
Pedro b39a953f69 Add note re using manpath 2015-03-07 22:11:51 +00:00
Pedro b6caf8f7a5 Create man page as part of cmake build 2015-03-07 22:08:39 +00:00
Geoff McLane 59aad805e5 Initial cpack building releases.
Thanks to pedromorgan PR #174 for the initial addition of this to
CMakeLists.txt.
2015-03-06 15:31:34 +01:00
Pedro 648b20e622 Create zips and tarballs 2015-03-05 22:20:46 +00:00
Pedro ae49dab6e7 Create deb and rpm packages using cpack 2015-03-05 22:08:54 +00:00
Geoff McLane 4bb9418c7c add small 'sample' API use, optional build 2015-02-07 15:33:13 +01:00
Jim Derry de97628f8f Deprecated tidyReleaseDate(). Returns epoch time (tdb). Removed dates from help, manpage, output, cmake, etc. 2015-02-01 14:20:41 +08:00
Jim Derry 362c71ee2e Added build date to version.txt and use CMakeLists.txt to build that, too. 2015-01-31 18:11:26 +08:00
Geoff McLane e2cbd9e89f Move version out to a version.txt file 2015-01-29 18:25:57 +01:00
Geoff McLane 85070acd8c fix windows DLL build 2015-01-28 17:15:44 +01:00
Geoff McLane d905b1037f Back up version to 4.9.1
Need to be able to clearly separate versions as we move forward towards
the final 5.0.0 release... Will try to remember to bump the point
as each fix is added so issue reports can be clear in which
version the problem exists.
2015-01-27 19:13:37 +01:00
Geoff McLane ef69056959 seems windows has no problem with unix set_target_properties 2015-01-24 13:21:33 +01:00
Geoff R. McLane aa32c5e557 change library name to 'tidy5' 2015-01-24 13:14:12 +01:00
Geoff McLane 4a3f5ecf07 make this version 5.0.0 2015-01-22 13:40:50 +01:00
Geoff McLane 0fc8029600 adjust the version 2015-01-20 18:09:01 +01:00
Geoff McLane c5e6e922ce bump the build day 2014-08-06 15:34:37 +02:00
Geoff McLane b57a230f33 Detect 64-bit, and set WIN64 for windows 2014-08-06 15:07:00 +02:00
Geoff R. McLane 8b73e96eae set SOVERSION for install 2014-08-06 14:36:33 +02:00
Geoff McLane 2a134030ec Add install to cmake 2014-08-06 12:09:13 +02:00
Geoff McLane f8e807f1ca Add a cmake build system 2014-08-03 20:08:57 +02:00