index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2019-11-28 14:08:33.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2019-11-28 14:08:33.0 +00:00:00
commit
2fd780e1da5eb12dfc563892da90c74747d1cc03 [patch]
tree
7c0bc5f2e9d28205dd99915f4352c3a419ad97b3
parent
3a69088f18b89fd7325c21acb0a2e565e73c302f
download
2fd780e1da5eb12dfc563892da90c74747d1cc03.tar.gz

fix: pkg name and version parsing



Diff

 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 4b4f547..37090da 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
PKG_TARGET=x86_64-unknown-linux-musl
PKG_BIN_PATH=./bin

PKG_NAME=$(shell cat Cargo.toml | sed -n 's/name = "\([^}]*\)"/\1/p')
PKG_TAG=$(shell cat Cargo.toml | sed -n 's/version = "\([^}]*\)"/\1/p')
PKG_NAME=$(shell cat Cargo.toml | sed -n 's/name = "\([^}]*\)"/\1/p' | head -n1)
PKG_TAG=$(shell cat Cargo.toml | sed -n 's/version = "\([^}]*\)"/\1/p' | head -n1)


#######################################