Commit graph

5 commits

Author SHA1 Message Date
Haru
421ea5a1b1 Added GPL-compliant header to all sources and build scripts
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15 20:53:48 +01:00
Haru
7b12dd0642 Added sysinfo (System Information) functionalities
- More informative messages are displayed during startup, to make it
  easier to identify what system and environment Hercules is running.
- Git/SVN revision detection is improved, separating the source version
  (cached at compile time) from the runtime version, in case the user
  updated their working copy without recompiling the server. Git
  version detection is also more reliable, in case a non-default branch
  is used.
- The get_revision script command has been removed (as it was useless
  to begin with, after the switch to git). An alternative will be
  provided later, for feature-probing purposes.
- The patch was tested under Linux (Gentoo / gcc 4.7 on i686 and x86_64,
  Debian 6 / gcc 4.4 on i686, Raspbian / gcc 4.6 on armv6l, CentOS 5 /
  gcc 4.1 on i686, CentOS 6 / gcc 4.4 on x86_64, Linux Mint 15 / gcc 4.7
  on x86_64, OS X Mountain Lion / clang 5.0 and gcc 4.8 on x86_64,
  Cygwin-NT-5.1/gcc 4.8 on i686, FreeBSD 8 / gcc 4.2 on i386, FreeBSD 9
  / gcc 4.2 on amd64, FreeBSD 10 / clang 3.3 on amd64, NetBSD 5 / gcc
  4.1 on i386, NetBSD 6 / gcc 4.5 on amd64, OpenBSD 5 / gcc 4.2 on
  amd64, Solaris 11 / gcc 4.5 on i86pc, Windows 7 / Visual Studio 2012
  on x86, Windows 8 / Visual Studio 2010 on WOW64, Windows 8.1 / Visual
  Studio 2013 on WOW64.

Signed-off-by: Haru <haru@dotalux.com>
2014-04-17 06:09:49 +02:00
Haru
0e58529609 Added --load-script commandline argument
Signed-off-by: Haru <haru@dotalux.com>
2014-03-16 23:21:08 +01:00
Haru
285296a2c7 Follow-up to 97001710c0
- Added missing license note and error message to the script-checker
  bash script
- Added Script-Checker.applescript. Open in Applescript Editor and save
  as .app bundle in order to use it. It's not pretty, but it works.

Signed-off-by: Haru <haru@dotalux.com>
2013-11-05 19:35:27 +01:00
Haru
97001710c0 Introducing the Hercules Standalone Script Syntax Checker
- Added a command line argument '--script-check' to check a script's
  syntax without running the server (and without requiring a SQL
  connection). Usage: ./map-server --script-check /path/to/the/script.txt
- For convenience, a script-checker bash script is provided, to set the
  path correctly when called from a different directory. Usage:
  /path/to/Hercules/script-checker /path/to/the/script/to/check.txt
- While the script checker will supposedly work under windows as well,
  no convenience scripts are currently provided for platforms other than
  UNIX (feel free to open a pull request with a .bat launcher or
  whatever you like)
- Integration with IDEs or text editors is possible. In fact, I already
  have a fully functional plugin for vim (through vim-syntastic), and if
  there's enough interest, I'll publish it. - screenshot: http://d.pr/i/NOBD
- If you want an online checker, http://haru.ws/scriptchecker/ is
  running this code, without modifications and will be kept up to date
  (without any warranty though.)
- Special thanks to Ind, Yommy, Streusel, who helped making this
  possible, in a way or another.
2013-11-05 04:17:39 +01:00