Handle the case where there is only one dependency described in
rebar.config, so when the line starts by '{deps' and ends by '}.'.
Before it was deleting this line but also all next lines until finding
a line that ends by '}.'.
Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
# Remove the "deps" statement from a rebar.config file
define remove-rebar-config-dependencies
- $(SED) '/^{deps/,/}\.$$/d' $($(PKG)_DIR)/rebar.config
+ $(SED) '/^{deps.*}\.$$/d' -e '/^{deps/,/}\.$$/d' \
+ $($(PKG)_DIR)/rebar.config
endef