summaryrefslogtreecommitdiff
path: root/vendor/github.com/tdewolff/minify/v2/Makefile
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-07-19 15:21:17 +0200
committerLibravatar GitHub <noreply@github.com>2022-07-19 15:21:17 +0200
commitc84384e6608368a13a774d6d33a8cc32da7cf209 (patch)
treea18aa9c1ced1299d2682c1993e1ba38f46448dba /vendor/github.com/tdewolff/minify/v2/Makefile
parent[chore] use our own logging implementation (#716) (diff)
downloadgotosocial-c84384e6608368a13a774d6d33a8cc32da7cf209.tar.xz
[bugfix] html escape special characters in text instead of totally removing them (#719)
* remove minify dependency * tidy up some tests * remove pre + postformat funcs * rework sanitization + formatting * update tests * add some more markdown tests
Diffstat (limited to 'vendor/github.com/tdewolff/minify/v2/Makefile')
-rw-r--r--vendor/github.com/tdewolff/minify/v2/Makefile58
1 files changed, 0 insertions, 58 deletions
diff --git a/vendor/github.com/tdewolff/minify/v2/Makefile b/vendor/github.com/tdewolff/minify/v2/Makefile
deleted file mode 100644
index 1c908800e..000000000
--- a/vendor/github.com/tdewolff/minify/v2/Makefile
+++ /dev/null
@@ -1,58 +0,0 @@
-SHELL=/usr/bin/env bash
-NAME=minify
-CMD=./cmd/minify
-TARGETS=linux_amd64 darwin_amd64 freebsd_amd64 netbsd_amd64 openbsd_amd64 windows_amd64
-VERSION=`git describe --tags`
-FLAGS=-ldflags "-s -w -X 'main.Version=${VERSION}'" -trimpath
-ENVS=GO111MODULES=on CGO_ENABLED=0
-
-all: install
-
-install:
- echo "Installing ${VERSION}"
- ${ENVS} go install ${FLAGS} ./cmd/minify
- . cmd/minify/bash_completion
-
-release:
- TAG=$(shell git describe --tags --exact-match 2> /dev/null);
- if [ "${.SHELLSTATUS}" -eq 0 ]; then \
- echo "Releasing ${VERSION}"; \
- else \
- echo "ERROR: commit is not tagged with a version"; \
- echo ""; \
- exit 1; \
- fi
- rm -rf dist
- mkdir -p dist
- for t in ${TARGETS}; do \
- echo Building $$t...; \
- mkdir dist/$$t; \
- os=$$(echo $$t | cut -f1 -d_); \
- arch=$$(echo $$t | cut -f2 -d_); \
- ${ENVS} GOOS=$$os GOARCH=$$arch go build ${FLAGS} -o dist/$$t/${NAME} ${CMD}; \
- \
- cp LICENSE dist/$$t/.; \
- cp cmd/minify/README.md dist/$$t/.; \
- if [ "$$os" == "windows" ]; then \
- mv dist/$$t/${NAME} dist/$$t/${NAME}.exe; \
- zip -jq dist/${NAME}_$$t.zip dist/$$t/*; \
- cd dist; \
- sha256sum ${NAME}_$$t.zip >> checksums.txt; \
- cd ..; \
- else \
- cp cmd/minify/bash_completion dist/$$t/.; \
- cd dist/$$t; \
- tar -cf - * | gzip -9 > ../${NAME}_$$t.tar.gz; \
- cd ..; \
- sha256sum ${NAME}_$$t.tar.gz >> checksums.txt; \
- cd ..; \
- fi; \
- rm -rf dist/$$t; \
- done
-
-clean:
- echo "Cleaning dist/"
- rm -rf dist
-
-.PHONY: install release clean
-.SILENT: install release clean