build: remove dead code

This commit is contained in:
mappu 2017-10-28 11:56:11 +13:00
parent 41e244c255
commit 54ecffd0d4

View File

@ -14,7 +14,6 @@ SOURCES=client/ clientpack.php Config.go main.go nmdc-webfrontend.conf.SAMPLE
.PHONY: all deps clean .PHONY: all deps clean
all: $(BINNAME)-$(VERSION)-win32.7z $(BINNAME)-$(VERSION)-linux64.tar.xz $(BINNAME)-$(VERSION)-src.tar.xz all: $(BINNAME)-$(VERSION)-win32.7z $(BINNAME)-$(VERSION)-linux64.tar.xz $(BINNAME)-$(VERSION)-src.tar.xz
#./build.sh -v ${VERSION}
deps: deps:
npm install -g less uglify-js less-plugin-clean-css html-minifier npm install -g less uglify-js less-plugin-clean-css html-minifier
@ -33,7 +32,6 @@ bindata.go: client client/*
cp -r ./client ./clientpack cp -r ./client ./clientpack
( echo ';(function() {' ; cat clientpack/dcwebui.js ; echo '})();' ) | uglifyjs -o clientpack/dcwebui.min.js -c -m --ie8 ( echo ';(function() {' ; cat clientpack/dcwebui.js ; echo '})();' ) | uglifyjs -o clientpack/dcwebui.min.js -c -m --ie8
lessc --clean-css clientpack/dcwebui.css clientpack/dcwebui.min.css lessc --clean-css clientpack/dcwebui.css clientpack/dcwebui.min.css
#./minipack style dcwebui.css clientpack/dcwebui.min.css
cat clientpack/index.htm \ cat clientpack/index.htm \
| sed -e '/dcwebui.css/{i <style>' -e 'r clientpack/dcwebui.min.css' -e 'a </style>' -e 'd}' \ | sed -e '/dcwebui.css/{i <style>' -e 'r clientpack/dcwebui.min.css' -e 'a </style>' -e 'd}' \
| sed -e '/dcwebui.js/{i <script>' -e 'r clientpack/dcwebui.min.js' -e 'a </script>' -e 'd}' \ | sed -e '/dcwebui.js/{i <script>' -e 'r clientpack/dcwebui.min.js' -e 'a </script>' -e 'd}' \