Reuben Thomas wrote:
> I get the following error while trying to make a GNU Zile release:
>
> /bin/bash: -c: line 1: syntax error near unexpected token `then'
> /bin/bash: -c: line 1: `@if test -d ../release; then  \'
> make[2]: *** [release-prep] Error 1
>
> I'm using bash 4.2.24(1)-release as shipped with Ubuntu 12.04. /bin/sh
> is dash 0.5.7. (I am slightly unclear why the error above is from
> bash, not dash…)

Hi Reuben,

Are you sure you're using the latest?
There have been a few changes in that code recently.

I've just tried this (after temporarily removing the previous make -s
announcement command):

    make V=1 release-prep RELEASE_TYPE=stable

and it worked fine.

For the record, now that rule starts like this:

.PHONY: release-prep
release-prep:
        $(AM_V_GEN)$(MAKE) --no-print-directory -s announcement \
          > ~/announce-$(my_distdir)
        $(AM_V_at)if test -d $(release_archive_dir); then       \
          ln $(rel-files) $(release_archive_dir);               \
          chmod a-w $(rel-files);                               \
        fi

Reply via email to