From 814175ddfc6a05c1bf039e0f659213cfd99a5c5a Mon Sep 17 00:00:00 2001 From: Charles Blake Date: Sun, 23 Aug 2020 15:17:36 -0400 Subject: [PATCH] Ok. This seems to install both binaries and both source. Needed a `nim.cfg` to add ".." to the path, though. --- hldiff.nimble | 2 +- {hldiff => hldiffpkg}/edits.nim | 0 hldiff.nim => hldiffpkg/hldiff.nim | 2 +- hldiffpkg/nim.cfg | 1 + 4 files changed, 3 insertions(+), 2 deletions(-) rename {hldiff => hldiffpkg}/edits.nim (100%) rename hldiff.nim => hldiffpkg/hldiff.nim (99%) create mode 100644 hldiffpkg/nim.cfg diff --git a/hldiff.nimble b/hldiff.nimble index e583f51..4ec4bcd 100644 --- a/hldiff.nimble +++ b/hldiff.nimble @@ -3,7 +3,7 @@ version = "0.2" author = "Charles Blake" description = "A port of Python difflib to compute & (re)highlight diff output intraline" license = "MIT/ISC" -srcDir = "hldiff" +srcDir = "hldiffpkg" installExt = @[ "nim" ] bin = @[ "hldiff", "edits" ] diff --git a/hldiff/edits.nim b/hldiffpkg/edits.nim similarity index 100% rename from hldiff/edits.nim rename to hldiffpkg/edits.nim diff --git a/hldiff.nim b/hldiffpkg/hldiff.nim similarity index 99% rename from hldiff.nim rename to hldiffpkg/hldiff.nim index 16ecd40..a282116 100644 --- a/hldiff.nim +++ b/hldiffpkg/hldiff.nim @@ -1,4 +1,4 @@ -import strutils, os, sets, tables, hldiff/edits, +import strutils, os, sets, tables, hldiffpkg/edits, cligen/[parseopt3, osUt, textUt, humanUt] var highlights = { #key lower for optionNormalize camelCase kebab-case snake_case diff --git a/hldiffpkg/nim.cfg b/hldiffpkg/nim.cfg new file mode 100644 index 0000000..934d120 --- /dev/null +++ b/hldiffpkg/nim.cfg @@ -0,0 +1 @@ +path = ".."