Message ID | oree064496.fsf@lxoliva.fsfla.org |
---|---|
State | New |
Headers | show |
Series | [FYI] libcody: fix nonportable shell code in revision.stamp build rule | expand |
diff --git a/libcody/Makefile.in b/libcody/Makefile.in index 7eaf8ace8cebf..bb87468cb9a33 100644 --- a/libcody/Makefile.in +++ b/libcody/Makefile.in @@ -66,11 +66,11 @@ clean:: Makefile # FIXME: Delete revision.stamp: $(srcdir)/. - @revision=$$(git -C $(srcdir) rev-parse HEAD 2>/dev/null) ;\ + @revision=`git -C $(srcdir) rev-parse HEAD 2>/dev/null` ;\ if test -n "$$revision" ;\ then revision=git-$$revision ;\ if git -C $(srcdir) status --porcelain 2>/dev/null | grep -vq '^ ' ;\ - then revision+=M ;\ + then revision=$${revision}M ;\ fi ;\ else revision=unknown ;\ fi ;\