[Top][All Lists]

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

Re: Starting a GNU Guile awesome list

From: Dmitry Alexandrov
Subject: Re: Starting a GNU Guile awesome list
Date: Thu, 16 Jul 2020 11:47:24 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"Dr. Arne Babenhauserheide" <> wrote:
>>> In the case you will stick with Org, there at least should be a runnable 
>>> build recipe (i. e. a Makefile).
> I’d like to cut this discussion short:

>       all: readme.texi readme.html
>       .INTERMEDIATE: .exported
> readme.texi readme.html: .exported
>       .exported:
>               HOME=$$(dirname $$(realpath "$<")) emacs -Q --batch "$<" --exec 
> "(require 'ox-md)" -f org-md-export-to-markdown -f org-html-export-to-html -f 
> org-texinfo-export-to-texinfo -f kill-emacs

Alternatively, without reliance on implicit behaviour (setting HOME in order to 
get an expected filename??):

        #!/usr/bin/make -f
        SHELL := emacs
        .SHELLFLAGS := --quick --batch --eval
        orgs := $(wildcard *.org)
        objs := $( $(
        .PHONY: all
        all: $(objs)
        .ONESHELL: %.texi:
                  (require 'ox-md)
                  (require 'ox-texinfo)
                  (when (insert-file-contents "$<")
                    (org-export-to-file 'md "$*.md")
                    (org-export-to-file 'texinfo "$*.texi")))

Attachment: signature.asc
Description: PGP signature

reply via email to

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