all repos — hastyscribe @ 9634c14a1ccf766587f4b7d7d3f49ab444535e60

A professional markdown compiler.

Added nakefile for cross-compilation on OS X
h3rald h3rald@h3rald.com
Sat, 02 Aug 2014 20:18:31 +0200
commit

9634c14a1ccf766587f4b7d7d3f49ab444535e60

parent

c39794ecf46ff558c3f8126a12214c8a5aa54ec9

5 files changed, 33 insertions(+), 4 deletions(-)

jump to
M .gitignore.gitignore

@@ -4,3 +4,4 @@ libmarkdown.a

README.htm hastyscribe.exe hastyscribe +nakefile
M doc/HastyScribe_UserGuide.htmdoc/HastyScribe_UserGuide.htm

@@ -1053,7 +1053,7 @@ </ul>

</div> <div id="footer"> - <p>Fabio Cevasco &ndash; August 1, 2014</p> + <p>Fabio Cevasco &ndash; August 2, 2014</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </body>
M hastyscribe.nimhastyscribe.nim

@@ -1,6 +1,6 @@

import os, parseopt2, strutils, times, pegs, base64, markdown, tables -let v = "1.0.1" +let v = "1.0.2" let usage = " HastyScribe v" & v & " - Self-contained Markdown Compiler" & """ (c) 2013-2014 Fabio Cevasco

@@ -191,7 +191,7 @@ headings = ""

toc = "" # Date parsing and validation - var timeinfo: TTimeInfo + var timeinfo: TTimeInfo = getLocalTime(getTime()) if metadata.date == "": discard parse_date(getDateStr(), timeinfo)
M hastyscribe.nimrod.cfghastyscribe.nimrod.cfg

@@ -1,8 +1,19 @@

define: "release" -putenv: "LIBRARY_PATH=./vendor:/private/tmp/babel/hastyscribe_head/vendor:/private/tmp/babel/hastyscribe/vendor" +# http://crossgcc.rts-software.org/doku.php?id=compiling_for_win32 +i386.windows.gcc.path = "/usr/local/gcc-4.8.0-qt-4.8.4-for-mingw32/win32-gcc/bin" +i386.windows.gcc.exe = "i586-mingw32-gcc" +i386.windows.gcc.linkerexe = "i586-mingw32-gcc" + +# http://crossgcc.rts-software.org/doku.php?id=compiling_for_linux +i386.linux.gcc.path = "/usr/local/gcc-4.8.1-for-linux32/bin" +i386.linux.gcc.exe = "i586-pc-linux-gcc" +i386.linux.gcc.linkerexe = "i586-pc-linux-gcc" + +putenv: "LIBRARY_PATH=/private/tmp/babel/hastyscribe_head/vendor:/private/tmp/babel/hastyscribe/vendor" passL: "-lm" +passL: "-L./vendor" @if macosx: passL: "-lmarkdown_macosx"
A nakefile.nim

@@ -0,0 +1,17 @@

+import nake + +const + compile = "nimrod c" + linux_x86 = "--cpu:i386 --os:linux" + windows_x86 = "--cpu:i386 --os:windows" + parallel = "--parallelBuild:1" + hs = "hastyscribe.nim" + +task "windows-build", "Build HastyScribe for Windows (x86)": + direshell compile, windows_x86, hs + +task "linux-build", "Build HastyScribe for Linux (x86)": + direshell compile, linux_x86, hs + +task "macosx-build", "Build HastyScribe for Mac OS X (x86)": + direshell compile, hs