From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zelphir Kaltstahl Newsgroups: gmane.lisp.guile.user Subject: Re: Starting a GNU Guile awesome list Date: Mon, 12 Oct 2020 01:39:13 +0200 Message-ID: <1d95a8f7-1db0-5c1d-5681-cd4aab2a4e22@posteo.de> References: <87k0z5xp8y.fsf@web.de> <3bbb1573-eff8-975f-bae0-4d305d84e09f@posteo.de> <871ri4zglz.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40722"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: guile-user@gnu.org, Matt Wette To: Ricardo Wurmus Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Oct 12 01:39:33 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kRkw9-000AV0-Gl for guile-user@m.gmane-mx.org; Mon, 12 Oct 2020 01:39:33 +0200 Original-Received: from localhost ([::1]:38500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRkw8-0006Ux-He for guile-user@m.gmane-mx.org; Sun, 11 Oct 2020 19:39:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRkvw-0006TQ-Q0 for guile-user@gnu.org; Sun, 11 Oct 2020 19:39:20 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:51918) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRkvt-0006G6-OZ for guile-user@gnu.org; Sun, 11 Oct 2020 19:39:20 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4340C16005F for ; Mon, 12 Oct 2020 01:39:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1602459555; bh=XJgxsmlwirVhkoHQosV0F0bDZu9TnABo4WPsrM+Xnno=; h=Subject:To:Cc:From:Date:From; b=aiDq5njQHQ6ZMajBXHxh2Su7WEiG3CnQ3Q1PwXKnk34zZ92RPwnyGHrSpLF3JbfA2 KvrAXOf6PaPSDYJDjbFeLhZL2iRWVjcINT8SkkPbzNvskkwNeYoxCYOCJ0A3hs19vh rHLVTi9bvQCrXY0t5EZndPCiMF20CNDXdnIW+87dbCoq7SIsCl+3LsZNn0fs3hwGAu M/W+rrsn/429wpTw0qEjIvHt/iq/ZFZKSpAgDcDWDYqcNGfz0Dw1QTJMMtEQ76I4Ap 5XlLE7JdV9AjFb5a2w1Hm80sD9RTaFC9pmFDCUdMLV3mhW+UjVVcOt2NbTATSvuKxS TmBbLuDhEKQHQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4C8dYt3Bk7z6tm9; Mon, 12 Oct 2020 01:39:14 +0200 (CEST) X-Tagtoolbar-Keys: D20201012013913929 In-Reply-To: <871ri4zglz.fsf@elephly.net> Content-Language: en-US Received-SPF: pass client-ip=185.67.36.65; envelope-from=zelphirkaltstahl@posteo.de; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/11 17:56:58 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16978 Archived-At: Hi Ricardo! On 10/11/20 9:51 PM, Ricardo Wurmus wrote: > Zelphir Kaltstahl writes: > >> Hello Matt, >> >> On 10/10/20 3:14 PM, Matt Wette wrote: >>> >>> On 10/10/20 5:31 AM, Zelphir Kaltstahl wrote: >>>>> #!/usr/bin/make -f >>>>> >>>>> SHELL := emacs >>>>> .SHELLFLAGS := --quick --batch --eval >>>>> >>>>> >>> Maybe try this: >>> >>> #!/usr/bin/make -f - >>> >>> with the added dash. >> This does not seem to change anything: >> >> ~~~~ >> #!/usr/bin/make -f - >> >> # use emacs as a shell, so that we can write emacs lisp code in here >> SHELL := emacs >> # set some flags for emacs >> .SHELLFLAGS := --quick --batch --eval >> >> # all org mode files will be converted >> # orgs := $(wildcard *.org) >> # only the list.org file will be converted >> orgs := list.org >> objs := $(orgs:.org=.md) $(orgs:.org=.texi) $(orgs:.org=.html) >> >> .PHONY: all >> all: $(objs) >> >> .PHONY: clean >> clean: >> /bin/rm --verbose *.html *.md *.texi || true; >> >> # in here comes the shell specific code >> .ONESHELL: >> %.html %.md %.texi: %.org >> (with-temp-buffer >> (require 'ox-md) >> (require 'ox-texinfo) >> (require 'ox-html) >> (when (insert-file-contents "$<") >> (org-mode) >> (org-export-to-file 'md "$*.md") >> (org-export-to-file 'texinfo "$*.texi") >> (org-export-to-file 'html "$*.html"))) >> ~~~~ >> >> ~~~~ >> $ make clean >> /bin/rm --verbose *.html *.md *.texi || true; >> Symbol’s value as variable is void: /bin/rm >> make: *** [Makefile:19: clean] Error 255 >> ~~~~ > Well, isn’t that expected as you’re using Emacs as a shell? Yes : ) But that is the problem: How can I add a clean step, even though I am using Emacs as shell? Or can I switch shell for one command? I realize this might be not the correct user list to ask these questions. If so, I am sorry for the confusion! Best regards, Zelphir -- repositories: https://notabug.org/ZelphirKaltstahl