Sfoglia il codice sorgente

Makefile.am: fix do_shell_subst to update a shell variable instead of a perl variable

The copy & paste was too quick, I forgot to update the sed expression.
Raphaël Hertzog 16 anni fa
parent
commit
dcccf15449
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      scripts/Makefile.am

+ 1 - 1
scripts/Makefile.am

@@ -124,7 +124,7 @@ do_perl_subst = $(AM_V_GEN) \
 		    -e "s:\$$version[[:space:]]*=[[:space:]]*['\"][^'\"]*[\"']:\$$version=\"$(PACKAGE_VERSION)\":"
 
 do_shell_subst = $(AM_V_GEN) \
-		 sed -e "s:\$$version[[:space:]]*=[[:space:]]*['\"][^'\"]*[\"']:\$$version=\"$(PACKAGE_VERSION)\":"
+		 sed -e "s:^version[[:space:]]*=[[:space:]]*['\"][^'\"]*[\"']:version=\"$(PACKAGE_VERSION)\":"
 
 %: %.pl Makefile
 	@test -d `dirname $@` || $(mkdir_p) `dirname $@`