gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet-scheme] 11/16: Don't mutate source files, instead make new ones.


From: gnunet
Subject: [gnunet-scheme] 11/16: Don't mutate source files, instead make new ones.
Date: Mon, 05 Sep 2022 21:34:03 +0200

This is an automated email from the git hooks/post-receive script.

maxime-devos pushed a commit to branch master
in repository gnunet-scheme.

commit ffc4f25c7f5a670b3ce74abba2e6555ddcda7175
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Sun Sep 4 15:55:44 2022 +0200

    Don't mutate source files, instead make new ones.
    
    Should be a bit easier to work with.
    
    * Makefile.am (racketify): Rename to ...
    (make-racket): ... this, and don't make symlinks.
    * doc/contributing.tm: Adjust instructions.
---
 Makefile.am         |  7 ++-----
 doc/contributing.tm | 11 ++++++++---
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 6e1824d..d7539cf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -252,8 +252,5 @@ clean-local:
        rm -f $(GOBJECTS)
 
 # Convert the code from Guile Scheme into Racket Scheme
-racketify:
-       sed -i -e 's/;#!r6rs/#!r6rs/' $(modules) && for m in $(modules); do ln 
-f -s "$$(basename "$$m")" "$$(echo "$$m" | sed s/\\.scm/.ss/)"; done
-# Convert the code from Racket Scheme to Guile Scheme
-guilify:
-       sed -i -e 's/#!r6rs/;#!r6rs/' $(modules)
+make-racket:
+       for m in $(modules); do sed -e '1s/^;#!r6rs/#!r6rs/' "$$m" > "$$(echo 
"$$m" | sed s/\\.scm/.ss/)"; done
diff --git a/doc/contributing.tm b/doc/contributing.tm
index d79bce2..e7b9cae 100644
--- a/doc/contributing.tm
+++ b/doc/contributing.tm
@@ -48,9 +48,9 @@
 
     ./configure
 
-    <todo|make racketify>
+    make make-racket # only when using Racket
 
-    make
+    make # only when using Guile Scheme
 
     make check
   </shell-code>
@@ -127,7 +127,12 @@
 
   Scheme-GNUnet aims to be portable between Schemes. It primarily supports
   Guile Scheme, but also supports Racket Scheme. However, the two different
-  Schemes are incompatible.
+  Schemes are incompatible. One of these is that Racket expects Scheme files
+  to use <verbatim|.ss> as file extension, whereas Guile uses
+  <verbatim|.scm>.. Another incompatibility is that Racket expects the Scheme
+  files to start with <verbatim|#!r6rs>. To smooth over these two
+  differences, <code*|make make-racket> generates <verbatim|.ss> from the
+  <verbatim|.scm> files.
 
   <section|Contact>
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]