Skip to content

Commit

Permalink
Amethyst: Imported the latest sources from the Mercurial repository
Browse files Browse the repository at this point in the history
It is good to have all the tools included as part of the main source
distribution. The separate Amethyst repository won't be discontinued,
though.
  • Loading branch information
skyjake committed Mar 11, 2013
1 parent 6874650 commit f07e412
Show file tree
Hide file tree
Showing 78 changed files with 9,331 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/tools/amethyst/.gitignore
@@ -0,0 +1,3 @@
*.pro.user
*.user.*
inst
146 changes: 146 additions & 0 deletions doomsday/tools/amethyst/amethyst.pro
@@ -0,0 +1,146 @@
# Amethyst (c) 2002-2011 Jaakko Keränen <jaakko.keranen@iki.fi>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.

QT += core
QT -= gui

CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app
TARGET = amethyst

SOURCES += \
src/block.cpp \
src/callstack.cpp \
src/command.cpp \
src/commandline.cpp \
src/commandrule.cpp \
src/commandruleset.cpp \
src/contextrelation.cpp \
src/formatrule.cpp \
src/gem.cpp \
src/gemclass.cpp \
src/gemtest.cpp \
src/gemtestcommand.cpp \
src/length.cpp \
src/lengthrule.cpp \
src/linkable.cpp \
src/macro.cpp \
src/main.cpp \
src/outputcontext.cpp \
src/outputstate.cpp \
src/processor.cpp \
src/rule.cpp \
src/ruleset.cpp \
src/schedule.cpp \
src/shard.cpp \
src/source.cpp \
src/string.cpp \
src/structurecounter.cpp \
src/token.cpp \
src/utils.cpp \
src/exception.cpp

HEADERS += \
src/block.h \
src/callstack.h \
src/command.h \
src/commandline.h \
src/commandrule.h \
src/commandruleset.h \
src/contextrelation.h \
src/defs.h \
src/exception.h \
src/formatrule.h \
src/gem.h \
src/gemclass.h \
src/gemtest.h \
src/gemtestcommand.h \
src/length.h \
src/lengthrule.h \
src/linkable.h \
src/list.h \
src/macro.h \
src/outputcontext.h \
src/outputstate.h \
src/processor.h \
src/rule.h \
src/ruleset.h \
src/schedule.h \
src/shard.h \
src/source.h \
src/string.h \
src/stringlist.h \
src/structurecounter.h \
src/token.h \
src/uniquelist.h \
src/utils.h

OTHER_FILES += plan.txt changelog.txt

# Compiler options.
*-gcc* {
QMAKE_CXXFLAGS += -pedantic
!mac:!win32: QMAKE_CXXFLAGS += -std=c++0x
}
win32-msvc* {
DEFINES += _CRT_SECURE_NO_WARNINGS
}

# Installation.
library.files += \
lib/amestd.ame \
lib/ametxt.ame \
lib/amehtml.ame \
lib/amertf.ame \
lib/ameman.ame \
lib/amewiki.ame

unix {
isEmpty(PREFIX) {
PREFIX = /usr/local
}
BINDIR = $$PREFIX/bin
SHAREDIR = $$PREFIX/share/amethyst
DOCDIR = $$PREFIX/share/doc/amethyst
AMELIBDIR = $$SHAREDIR/lib

# Default location for the library files.
DEFINES += AME_LIBDIR=\\\"$$AMELIBDIR\\\"

INSTALLS += target library
target.path = $$BINDIR

library.path = $$AMELIBDIR
}
win32 {
isEmpty(PREFIX) {
PREFIX = $$PWD/inst
}
BINDIR = $$PREFIX
AMELIBDIR = $$PREFIX/lib
DOCDIR = $%PREFIX/doc

INSTALLS += target qtcore library #guide
target.path = $$BINDIR

CONFIG(debug, debug|release): qtver = d4
else: qtver = 4
qtcore.files = $$[QT_INSTALL_LIBS]/QtCore$${qtver}.dll
qtcore.path = $$BINDIR

library.path = $$AMELIBDIR
}
39 changes: 39 additions & 0 deletions doomsday/tools/amethyst/changelog.txt
@@ -0,0 +1,39 @@
AMETHYST CHANGELOG
==================

1.1.1 (Jan 2012)
----------------
+ If macro "CR_NL" defined, \n is output as \r\n.
+ Left-to-right mathematic expressions in rules: @v(3+5*2) => 16.
+ Global variable "x" can be used to store values: @v(12=x).
- Gem class filter only applies for the 'normal' part, not pre/post.
- Rule markers (@<, @>, @[, etc.) always end at the next marker.

1.1.0 (Apr 2011)
----------------
+ Unicode (UTF-8) support for input and output files.
+ @else after @ifdef/@ifndef.
+ Added the ^ modifier (escalation) for gem tests.
+ Anchors (@&), inserting text at the anchor with @[, @] filters.
+ Added format selectors for flush modes (left, right, center).
+ Unix: installing with "make install" under PREFIX (default: /usr/local).
+ Added a post-line-breaking flag for commands.
- Context flow in unfilled output did not advance correctly.
- @center{} now breaks the line before and after.
- @apply{@D}{spec} uses the format 'spec' to produce a timestamp.
See QDateTime::toString(QString format) in the Qt reference.
- Flush modes are inherited correctly in the gem tree.
* Ported to Qt.
* Refactored according to better coding conventions.
* Changed license to GPL v3.
* Apply pre and post filters in the Contents.

1.0.1 (Sep 4, 2002)
-------------------
- Corrected macro calls. Previously it was impossible to use @arg in
a nested macro call, because the original caller wasn't properly kept
track of. Now a call stack keeps track of the call hierarchy.

1.0.0 (July 30, 2002)
---------------------
+ Initial version.

0 comments on commit f07e412

Please sign in to comment.