From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14505 invoked by alias); 10 Oct 2014 11:06:25 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 33419 Received: (qmail 7531 invoked from network); 10 Oct 2014 11:06:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7f776d000003e54-2d-5437bb4f1003 Date: Fri, 10 Oct 2014 11:56:14 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: reproducing release tarball for 5.0.7 Message-id: <20141010115614.7794e14c@pwslap01u.europe.root.pri> In-reply-to: References: <20141009201629.GA10638@tower.spodhuis.org> <20141009215226.7d1738fa@pws-pc.ntlworld.com> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupjluLIzCtJLcpLzFFi42I5/e/4ZV3/3eYhBrtmslgcbH7I5MDoserg B6YAxigum5TUnMyy1CJ9uwSujPXblrEUfBSo+HfoFmsD40OeLkZODgkBE4lJG/ezQ9hiEhfu rWfrYuTiEBJYyijR+n0NK4SznEli2eG9jCBVLAKqEj+2zGYCsdkEDCWmbpoNFhcREJc4u/Y8 C4gtLGAksfLnArAaXgF7iQf/74HFOQWCJQ60PmOGGLqOUeLWs6tgCX4BfYmrfz8xQZxhLzHz yhlGiGZBiR+TIZqZBbQkNm9rYoWw5SU2r3nLPIFRYBaSsllIymYhKVvAyLyKUTS1NLmgOCk9 10ivODG3uDQvXS85P3cTIyQMv+5gXHrM6hCjAAejEg/vBRnzECHWxLLiytxDjBIczEoivLpb gEK8KYmVValF+fFFpTmpxYcYmTg4pRoYqxntM/xKbAvl3+3S2atw+xffYXF/YzdXhcCoud8W K6WkzlM9tK/BN2Tuvj8TG/pebmndPeG5XvjSbVzP1v/KWD0l9PLdRruQO1M3XtZduuDPOVfN nWdv6Ezl1+65NeP28mbP+K1FldJ3qt6br3hX6NhQ9+RLoBW3/Zu1kb7cIW9uPdMIM866p8RS nJFoqMVcVJwIAMP6r/ghAgAA On Thu, 09 Oct 2014 23:34:20 +0200 Mikael Magnusson wrote: > So I tried > % cd Etc > % make > cd . && yodl2txt FAQ.yo && mv -f FAQ.txt FAQ > FAQ.yo:1: Can't read `txt' > /usr/bin/yodl indicates failure! > make: *** [FAQ] Error 1 > Makefile:191: recipe for target 'FAQ' failed > > Which is a confusing error message. This works around it if the Yodl installation is fairly standard, though it's not clear to me it's our job to do so. Did I miss some much simpler standard Bourne shell way of finding what directory a command is in? diff --git a/Etc/Makefile.in b/Etc/Makefile.in index b6743a7..fed35c7 100644 --- a/Etc/Makefile.in +++ b/Etc/Makefile.in @@ -42,11 +42,42 @@ INSTALL = @INSTALL@ all: FAQ +# Some Yodl installations don't have correct paths to include +# the standard macros, so find them. + FAQ: FAQ.yo - cd $(sdir) && $(YODL2TXT) FAQ.yo && mv -f FAQ.txt FAQ + pathsplit=`echo $$PATH | sed 's%:% %g'`; \ + include=`for p in $$pathsplit; do \ + if [ -e $$p/$(YODL2TXT) ]; then \ + echo $$p | sed -e 's%/bin$$%%'; \ + break; \ + fi; \ + done`; \ + if [ x$$include != x ]; then \ + if [ -d $$include/share/yodl ]; then \ + include="-I$$include/share/yodl"; \ + else \ + include=''; \ + fi; \ + fi; \ + cd $(sdir) && $(YODL2TXT) $$include FAQ.yo && mv -f FAQ.txt FAQ FAQ.html: FAQ.yo - $(YODL2HTML) $(sdir)/FAQ.yo + pathsplit=`echo $$PATH | sed 's%:% %g'`; \ + include=`for p in $$pathsplit; do \ + if [ -e $$p/$(YODL2HTML) ]; then \ + echo $$p | sed -e 's%/bin$$%%'; \ + break; \ + fi; \ + done`; \ + if [ x$$include != x ]; then \ + if [ -d $$include/share/yodl ]; then \ + include="-I$$include/share/yodl"; \ + else \ + include=''; \ + fi; \ + fi; \ + $(YODL2HTML) $$include $(sdir)/FAQ.yo # ========== DEPENDENCIES FOR CLEANUP ========== pws -- Peter Stephenson Principal Software Engineer Tel: +44 (0)1223 434724 Samsung Cambridge Solution Centre St John's House, St John's Innovation Park, Cowley Road, Cambridge, CB4 0DS, UK