Browse Source

Add corresponding space in the replace regex

Fixes a previous incomplete PR merged by mistake.
Loïc Hoguin 10 years ago
parent
commit
761be708a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/erlc.mk

+ 1 - 1
core/erlc.mk

@@ -83,7 +83,7 @@ else
 		exit 1; \
 		exit 1; \
 	fi
 	fi
 	$(appsrc_verbose) cat src/$(PROJECT).app.src \
 	$(appsrc_verbose) cat src/$(PROJECT).app.src \
-		| sed "s/{modules,[[:space:]]*\[\]}/{modules, \[$(MODULES)\]}/" \
+		| sed "s/{[[:space:]]*modules[[:space:]]*,[[:space:]]*\[\]}/{modules, \[$(MODULES)\]}/" \
 		| sed "s/{id,[[:space:]]*\"git\"}/{id, \"$(GITDESCRIBE)\"}/" \
 		| sed "s/{id,[[:space:]]*\"git\"}/{id, \"$(GITDESCRIBE)\"}/" \
 		> ebin/$(PROJECT).app
 		> ebin/$(PROJECT).app
 endif
 endif