Skip to content

Commit f3170c4

Browse files
committed
Makefile: fix sha1sum for python versions
1 parent f10604d commit f3170c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ build-go: overlordd ghost ghost-linux
9494
build-py:
9595
@ln -sf ../py/ghost.py bin
9696
$(call cmd_msg,SHA1,ghost.py)
97-
@sha1sum py/ghost.py > bin/ghost.py.sha1
97+
@sha1sum py/ghost.py | awk '{ print $$1 }' > bin/ghost.py.sha1
9898

9999
@mkdir -p $(BUILD)
100100
$(call cmd_msg,VENV,creating virtualenv)
@@ -111,14 +111,14 @@ build-py:
111111
pyinstaller --onefile $(CURDIR)/py/ovl.py > /dev/null;
112112
@mv $(BUILD)/dist/ovl $(BIN)/ovl.pybin
113113
$(call cmd_msg,SHA1,ovl.pybin)
114-
@cd $(BIN) && sha1sum ovl.pybin > ovl.pybin.sha1
114+
@cd $(BIN) && sha1sum ovl.pybin | awk '{ print $$1 }' > ovl.pybin.sha1
115115

116116
$(call cmd_msg,GEN,ghost.pybin)
117117
@cd $(BUILD); . $(BUILD)/.venv/bin/activate; \
118118
pyinstaller --onefile $(CURDIR)/py/ghost.py > /dev/null
119119
@mv $(BUILD)/dist/ghost $(BIN)/ghost.pybin
120120
$(call cmd_msg,SHA1,ghost.pybin)
121-
@cd $(BIN) && sha1sum ghost.pybin > ghost.pybin.sha1
121+
@cd $(BIN) && sha1sum ghost.pybin | awk '{ print $$1 }' > ghost.pybin.sha1
122122

123123
go-fmt:
124124
$(call cmd_msg,FMT,$(GO_DIRS))

0 commit comments

Comments
 (0)