build: replace IIFEMODE/sed with cat in makefile

This commit is contained in:
mappu 2017-10-28 11:40:09 +13:00
parent 0bafa59358
commit a109e2dc29
2 changed files with 2 additions and 7 deletions

View File

@ -31,10 +31,8 @@ clean:
bindata.go: client client/*
rm -fr ./clientpack
cp -r ./client ./clientpack
sed -i -re 's~//IIFEMODE:~~g' clientpack/dcwebui.js
uglifyjs clientpack/dcwebui.js -o clientpack/dcwebui.min.js -c -m
( 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
#php ./clientpack.php
cat clientpack/index.htm \
| ./minipack style dcwebui.css clientpack/dcwebui.min.css \
| ./minipack script dcwebui.js clientpack/dcwebui.min.js \

View File

@ -1,6 +1,5 @@
/* dcwebui.js */
//IIFEMODE:;(function() {
"use strict";
var SENTINEL_PASSWORD = "************";
@ -1190,5 +1189,3 @@ window.onload = function() {
menu.reset(); // sent before login
});
};
//IIFEMODE:})();