(This target is somewhat special as it should handle installing and
_registering_ the library in generic installations.) We can't rely on
'install-exec' to fix this bug (but we should depend on 'build-exec'
nevertheless), since the 'install-all' target already installs pandoc along
with the library files. Therefore we should install wrappers separately by
using a helper function which was specifically created to avoid code
duplication ('install-exec' target was also updated so as to use this
function).
git-svn-id: https://pandoc.googlecode.com/svn/trunk@426 788f1e2b-df1e-0410-8736-df70ead52e1b
markdown test suites in the 'test' directory (subdirectories
beginning with 'MarkdownTest_') and run them all. This allows
us to have multiple test suites, e.g. for 1.0 and for a beta
version.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@414 788f1e2b-df1e-0410-8736-df70ead52e1b
all wrappers corresponding to src/wrappers/*.in. Now, it will only
build wrappers in WRAPPERS. This might be useful if we decide to
have 'hsmarkdown' be a wrapper on Windows and a symlink on unix.)
git-svn-id: https://pandoc.googlecode.com/svn/trunk@407 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Use 'hsmarkdown' instead of building 'pandoc-strict' (which was a hack,
and didn't work on Windows machines, anyway, due to the line ending problem)
+ Put top-level directory in path before running the test script, so that
hsmarkdown can find 'pandoc' even if it hasn't been installed.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@406 788f1e2b-df1e-0410-8736-df70ead52e1b
replacement for Markdown.pl. It calls pandoc with the options
'--from markdown --to html --strict' and disallows other options.
(Any command-line options will be interpreted as arguments.)
git-svn-id: https://pandoc.googlecode.com/svn/trunk@399 788f1e2b-df1e-0410-8736-df70ead52e1b
option to pandoc, which forces it to stay as close as possible
to official Markdown syntax.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@347 788f1e2b-df1e-0410-8736-df70ead52e1b
+ history.html -> changelog.html
+ demo.html -> examples.html
+ Added title to changelog.html
+ Removed header div on html pages
+ Changed widths in css
git-svn-id: https://pandoc.googlecode.com/svn/trunk@319 788f1e2b-df1e-0410-8736-df70ead52e1b
Cygwin, due to Windows' lack of true symbolic links).
+ Modified the wrappers to use 'pandoc' instead of the symlinks.
+ Modified the Makefile to remove all references to the symlinks.
+ Removed code from Main.hs that made pandoc's behavior depend on the
name of the calling program.
+ Added code to Main.hs that sets default reader and writer based on
extensions of input and output filenames (if provided). (Thanks to
roktas for the idea.)
+ Modified README and man pages accordingly.
+ Removed WINDOWS-README target from Makefile. It is no longer needed
now that we don't have the symlinks.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@295 788f1e2b-df1e-0410-8736-df70ead52e1b
- New win-pkg target to build Windows binary package.
- Changed name on OSX package.
- New RELNAME global variable contains release name, e.g. pandoc-0.3
- Mac dmg is now created in top-level directory, not ..
+ Updates to website:
- Changed download links to point to Google Code downloads area.
- Added section on Windows binary package.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@286 788f1e2b-df1e-0410-8736-df70ead52e1b
using "Simply expanded variables" and PROGS expands before EXECS. Put
PROGS after EXECS to fix this bug. As an alternative solution, we could
make PROGS -and possibly others- "recursively expanded" variables, but I
tend to avoid using that flavour of variables.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@283 788f1e2b-df1e-0410-8736-df70ead52e1b
Summary of main changes:
+ Added -o/--output and -d/--debug options to pandoc.
+ Modified pandoc to behave differently depending on the name
of the program. For example, if the program name is 'html2latex',
the default reader will be html and the default writer latex.
+ Removed most of the old wrappers, replacing them with symlinks
to pandoc.
+ Rewrote markdown2pdf and created a new wrapper web2markdown,
with the functionality of the old html2markdown script. These
new scripts exploit pandoc's -d option to avoid having to do
complex command-line parsing.
+ Revised man pages and documentation appropriately.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@279 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Corrected dependencies in Makefiles to ensure that templates
get filled when the relevant files are modified.
+ Changed template placeholders to @xxx@ instead of <xxx>,
for consistency with our practice with the Cabal template.
+ Changed default font for RTF writer (this had been changed earlier,
but in the target rather than the template!)
git-svn-id: https://pandoc.googlecode.com/svn/trunk@235 788f1e2b-df1e-0410-8736-df70ead52e1b
The authoritative version number is now in src/Main.hs, with no
duplication. (This seems a better solution than building Main.hs
from a template.)
git-svn-id: https://pandoc.googlecode.com/svn/trunk@182 788f1e2b-df1e-0410-8736-df70ead52e1b
6.6 Cabal builds executables in dist/build/$executable, older Cabal
versions use dist/build/src. To cope with this situation:
+ Revert to old code which determines executable paths dynamically.
+ Create symlinks to the compiled executables in top directory. Make sure
to not touch symlinks once they've been created.
+ As PROGS variable can now contain symlinks, determine the actual file
during installation.
+ Replace EXECNAMES with EXECS, as the former became a redundant name due
to these changes.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@104 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Use $(NAME) instead of hard-coded 'Pandoc' for package and dmg names
+ Create dmg in .. (like debs)
+ Modified website target to get dmg from ..
git-svn-id: https://pandoc.googlecode.com/svn/trunk@90 788f1e2b-df1e-0410-8736-df70ead52e1b
- removed hardcoded references to /usr/local
- added title
+ Minor changes to website build process.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@84 788f1e2b-df1e-0410-8736-df70ead52e1b
would end up with web_dest directory which would have to be removed
manually for further attempts. If this looked ugly; as an alternative
solution we could change 'website' target as follows:
website: $(web_dest)/index.html
$(web_dest)/index.html: ...
git-svn-id: https://pandoc.googlecode.com/svn/trunk@82 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Execute $(MAIN) in './' otherwise this would fail if $(MAIN) is not
available in PATH.
+ Make echo off during file checking.
+ Copy $(deb_main) from parent directory.
Changes for 'deb':
+ Calculate $(deb_main) the essential Debian package to install.
+ Place this target before website target.
+ 'deb' should be a PHONY target.
+ Make echo off during tool checking.
Changes for 'tarball':
+ Use all-lowercase $(THIS) instead of $(MAIN).
git-svn-id: https://pandoc.googlecode.com/svn/trunk@81 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Add markdown2pdf to %.pdf dependencies.
+ Make build-all target explicitly depend on build-program, instead of
'all' which might be changed in future.
+ Add build-program to osx-pkg-prep for the sake of explicitness.
+ Generate INSTALL.html in build-doc.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@77 788f1e2b-df1e-0410-8736-df70ead52e1b
previous revisions as follows:
# XXX: Note that we don't handle PREFIX correctly at the install-*
# stages, i.e. any PREFIX given at the configuration time is lost,
# unless it is also supplied (via environment) at these stages.
With this (optional and experimental) hack, config time settings will
become persistent. Such persistency allows one to specify PREFIX and/or
DESTDIR only once (at the first run). That is, the below actions should
work fine now:
DESTDIR=/tmp/foo make
make install
In previous code these variables need to be specified at each run. For
example:
DESTDIR=/tmp/foo make
DESTDIR=/tmp/foo make install
This change (as an ugly hack) is optional (and might be removed) as the
user could always work around that issue with 'DESTDIR=/tmp/foo make
install'.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@75 788f1e2b-df1e-0410-8736-df70ead52e1b
of this option and fallback to '--copy-prefix' (which is now deprecated, as
of GHC 6.6).
Add a short comment to cabalize.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@72 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Remove a bogus DOCS assignment line.
+ Cabal recreates pandoc executable by unnecessarily linking Main.o with
library (it skips compiling *.hs files though). Since pandoc's time
stamp is modified, it is copied from buildir to top directory, and also
README.html is regenerated, each time a target which has a 'build'
prerequisite is invoked. As a solution, now PHONY 'build' target depends
on BUILDDIR/.
+ "THIS" variable has a confusing semantics and it is abusingly used in
various targets. We in fact need it to specify package sub directories
created during installation. Clarify this meaning by moving it to path
variables section.
+ Create a new variable as MAIN which holds the main executable name.
Sorry for my obsession to avoid simply using a magic "pandoc" name. :-)
Modify all targets which (abusingly) refers to THIS and replace THIS
with MAIN. Note that MAIN is derived from EXECS which in turn collects
all executable names from Executable stanzas in cabal file.
+ As EXECS may hold more than one executable name, update EXECS target to
reflect this semantic.
+ Rename BINS variable as PROGS and modify it so as to hold the names of
all executables required to be installed. Remove bin_all local variable
as PROGS can be used for the same purpose instead.
+ Modify DOCS variable so as to hold the names of all documents required to
be installed. Remove doc_all local variable as DOCS can be used for the
same purpose instead.
+ Remove DOCS target. README.html is already generated when needed.
+ Remove build-exec redundant prerequisite from osx_dest target. Make can
find its way.
+ Set MAIN as the prerequisite of 'test' and 'test-markdown' to make things
more clear.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@70 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Move $(BINS) target to a new PHONY 'build-exec' target. This should be
used in all (non-build type) targets which refer BINS. Also, create a
new 'build-program' target for user's convenience.
+ Update all targets so as to use build-exec (instead of BINS).
+ Use an explicit global DOCS variable which lists buildable documents;
this makes our intention more clear. Also, for the sake of consistency,
move BINS variable (which lists buildable executables) to a new section
and create a redundant (for the moment, at least) EXECS variable.
+ Move all buildable target files in install-* targets to the related
build-* targets. This mostly involves document files (e.g. README.hmtl).
As a result, we now have a new build target 'build-doc' which builds main
documents. This modification provides a clean separation between build
and install type targets.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@69 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Simplified osx-dmg target, which need not be built as root.
+ Made osx-pkg and osx-pkg-prep non-.PHONY, plus a few other minor
changes to make the dependencies work correctly.
+ Removed \< from the sed regex in cabalize; this is not support in
BSD sed.
+ Changed path information in osx/Welcome and message in uninstall-pandoc.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@67 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Exit 1 if permissions are not satisfied.
+ Make all targets PHONY.
+ Minor cosmetic fixes.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@63 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Add "pandoc" as bundle identifier to get rid of warning.
+ Remove old make_osx_pkg_dirs script, no longer needed because of
make target.
+ Add OSX-Welcome, with information about adding /usr/local/bin
to PATH.
+ Modify Makefile accordingly.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@51 788f1e2b-df1e-0410-8736-df70ead52e1b
+ Add new file 'gnuify-changelog.pl' grabbed and adapted from subversion
distribution.
+ Add 'ChangeLog' target to create/update ChangeLog.
+ Update current ChangeLog.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@44 788f1e2b-df1e-0410-8736-df70ead52e1b
* Makefile:
+ Make 'uninstall-all' depends on 'uninstall-exec'.
+ Make the default target 'all' depends on $(BINS). Now, invoking
a plain 'make' builds and creates pandoc in the top directory.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@39 788f1e2b-df1e-0410-8736-df70ead52e1b
in ugly ways.
+ Now, we have 'install-program' and 'install-all' targets. The former
installs only program and user documents, while the latter installs
everything: program, user documents, library files and library documents.
+ Behaviour of 'install' target hasn't changed, it calls 'install-program'.
+ Update README accordingly.
+ Implement missing uninstall-* targets (including 'uninstall-all' and
'uninstall-program' for the new targets).
+ Call 'install-program' in debian/rules explicitly to prevent confusions.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@33 788f1e2b-df1e-0410-8736-df70ead52e1b
it is unsupported in BSD version. Note that the relevant line has already
started with a '-' which means that make(1) will ignore any error.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@31 788f1e2b-df1e-0410-8736-df70ead52e1b
* Remove $datadir/doc/pandoc on uninstall-doc. Only this directory is
removed since it's a cruft directory due to its name. I couldn't find
a reliable method to remove other directories created on installation.
* Use fakeroot when invoking dpkg-buildpackage. Improve warnings in
'deb' target.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@5 788f1e2b-df1e-0410-8736-df70ead52e1b