mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-15 12:55:47 +01:00
Check for existence of base64(1) before 'make dist'
This commit is contained in:
@@ -38,6 +38,7 @@ BUILD_DIR = build.$(VERSION).$(OS)
|
||||
|
||||
AWK = awk
|
||||
CURL = curl
|
||||
B64ENCODE = base64
|
||||
|
||||
.SILENT:
|
||||
|
||||
@@ -79,6 +80,9 @@ release: $(XPI) $(RDF)
|
||||
# This is not for you!
|
||||
dist: $(XPI)
|
||||
@echo DIST $(XPI) $(GOOGLE)
|
||||
set -e; \
|
||||
which $$(echo $(B64ENCODE) | $(AWK) '{print $1}') >/dev/null; \
|
||||
\
|
||||
proj=$$(echo -n $(NAME) | sed 's/\(.\).*/\1/' | tr a-z A-Z); \
|
||||
proj="$$proj$$(echo $(NAME) | sed 's/.//')"; \
|
||||
[ -z "$$summary" ] && summary="$$proj $(VERSION) Release"; \
|
||||
@@ -90,7 +94,7 @@ dist: $(XPI)
|
||||
done; \
|
||||
$(CURL) "$$@" --form-string "summary=$$summary" \
|
||||
-F "filename=@$(XPI)" \
|
||||
-H "Authorization: Basic $$(echo -n "$(GOOGLE_USER):$(GOOGLE_PASS)" | base64)" \
|
||||
-H "Authorization: Basic $$(echo -n "$(GOOGLE_USER):$(GOOGLE_PASS)" | $(B64ENCODE))" \
|
||||
-i "$(GOOGLE)" | sed -n '/^Location/{p;q}'
|
||||
|
||||
$(RDF): $(RDF_IN) Makefile
|
||||
|
||||
Reference in New Issue
Block a user