summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-05-17 15:41:56 -0300
committerEuAndreh <eu@euandre.org>2022-05-17 15:41:56 -0300
commit19ecf3b372a1a60cfafcb73f47a64ec15ed621a3 (patch)
tree151bd44b776ecf0c18c088610a1237943fa6aa7f
parentgit mv src/heredoc.scm src/xyz/euandreh/ (diff)
downloadguile-heredoc-19ecf3b372a1a60cfafcb73f47a64ec15ed621a3.tar.gz
guile-heredoc-19ecf3b372a1a60cfafcb73f47a64ec15ed621a3.tar.xz
Update references to src/heredoc.scm
-rw-r--r--.gitignore2
-rw-r--r--Makefile12
-rw-r--r--src/xyz/euandreh/heredoc.scm2
-rw-r--r--tests/heredoc.scm16
4 files changed, 16 insertions, 16 deletions
diff --git a/.gitignore b/.gitignore
index 2311b75..e08ad6e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,4 @@
/heredoc.log
-/src/*.go
+*.go
/vendor/
/FIXME
diff --git a/Makefile b/Makefile
index dfeabe4..264a508 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@ OBJDIR = $(LIBDIR)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
$(GUILD) compile -L src/ $(GUILE_FLAGS)-o $@ $<
-sources = src/heredoc.scm
+sources = src/xyz/euandreh/heredoc.scm
objects = $(sources:.scm=.go)
@@ -33,18 +33,20 @@ install: all
"$(DESTDIR)$(MODDIR)" \
"$(DESTDIR)$(OBJDIR)"
for s in $(sources); do \
- cp $$s "$(DESTDIR)$(MODDIR)"; \
+ mkdir -p "$(DESTDIR)$(MODDIR)"/`dirname $${s#src/}`; \
+ cp $$s "$(DESTDIR)$(MODDIR)"/`dirname $${s#src/}`; \
done
for o in $(objects); do \
- cp $$o "$(DESTDIR)$(OBJDIR)"; \
+ mkdir -p "$(DESTDIR)$(OBJDIR)"/`dirname $${o#src/}`; \
+ cp $$o "$(DESTDIR)$(OBJDIR)"/`dirname $${o#src/}`; \
done
uninstall:
for s in $(sources); do \
- rm -f "$(DESTDIR)$(MODDIR)/`basename $$s`"; \
+ rm -f "$(DESTDIR)$(MODDIR)"/$${s#src/}; \
done
for o in $(objects); do \
- rm -f "$(DESTDIR)$(OBJDIR)/`basename $$o`"; \
+ rm -f "$(DESTDIR)$(OBJDIR)"/$${o#src/}; \
done
check-guile:
diff --git a/src/xyz/euandreh/heredoc.scm b/src/xyz/euandreh/heredoc.scm
index fb10088..be9408a 100644
--- a/src/xyz/euandreh/heredoc.scm
+++ b/src/xyz/euandreh/heredoc.scm
@@ -1,4 +1,4 @@
-(define-module (heredoc)
+(define-module (xyz euandreh heredoc)
#:use-module ((srfi srfi-1) #:prefix s1:)
#:export (heredoc-reader))
diff --git a/tests/heredoc.scm b/tests/heredoc.scm
index a445ac1..3c0fb7b 100644
--- a/tests/heredoc.scm
+++ b/tests/heredoc.scm
@@ -1,13 +1,11 @@
(use-modules
- (heredoc)
+ ((xyz euandreh heredoc) #:prefix heredoc:)
((srfi srfi-64) #:prefix t:))
-
-(eval-when (expand load eval)
- (read-hash-extend #\" heredoc-reader))
+(heredoc:enable-syntax)
(define (test-extract-single-line-indentation)
(define extract-single-line-indentation
- (@@ (heredoc) extract-single-line-indentation))
+ (@@ (xyz euandreh heredoc) extract-single-line-indentation))
(t:test-group "extract-single-line-indentation"
(t:test-equal '(#nil #f 0)
(extract-single-line-indentation
@@ -67,7 +65,7 @@
(define (test-extract-line-indentations)
(define extract-line-indentations
- (@@ (heredoc) extract-line-indentations))
+ (@@ (xyz euandreh heredoc) extract-line-indentations))
(t:test-group "extract-line-indentations"
(t:test-equal '()
(extract-line-indentations
@@ -99,7 +97,7 @@
(define (test-maximum-indentation)
(define maximum-indentation
- (@@ (heredoc) maximum-indentation))
+ (@@ (xyz euandreh heredoc) maximum-indentation))
(t:test-group "maximum-indentation"
(t:test-equal 0
(maximum-indentation
@@ -135,7 +133,7 @@
(define (test-trim-indentation)
(define trim-indentation
- (@@ (heredoc) trim-indentation))
+ (@@ (xyz euandreh heredoc) trim-indentation))
(t:test-group "trim-indentation"
(t:test-equal ""
(trim-indentation ""))
@@ -201,7 +199,7 @@ exit $ret
(define (test-non-quote-chars?)
(define non-quote-chars?
- (@@ (heredoc) non-quote-chars?))
+ (@@ (xyz euandreh heredoc) non-quote-chars?))
(t:test-group "non-quote-chars?"
(t:test-equal #f
(non-quote-chars?