Mercurial > hg > piper-vamp-js
changeset 165:1267740d9324
Reorder so as to be clear that the line count from wc is calculated
before any head/tail shenanigans. However, this still isn't right for
reasons I'll put in an issue
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 27 Jun 2017 16:29:29 +0100 |
parents | 54b684cdbdf9 |
children | 830e16ef00ab |
files | Makefile.inc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.inc Tue Jun 27 14:25:09 2017 +0100 +++ b/Makefile.inc Tue Jun 27 16:29:29 2017 +0100 @@ -141,7 +141,7 @@ $(EM_MODULE_U): $(EM_MODULE) ( echo "(function (factory) { if (typeof module === 'object' && typeof module.exports === 'object') { factory(module.exports); } else if (typeof define === 'function' && define.amd) { define([\"exports\"], factory); } } ) (function (exports) { \"use strict\"; exports.createLibrary = function(Module) { Module = Module || {};" > $(EM_MODULE_U) ) && \ - tail -n +4 $(EM_MODULE) | head -n $$(($$(wc -l $(EM_MODULE) | awk '{ print $$1; }') - 7)) >> $(EM_MODULE_U) && \ + head -n $$(($$(wc -l $(EM_MODULE) | awk '{ print $$1; }') - 4)) $(EM_MODULE) | tail -n +4 >> $(EM_MODULE_U) && \ ( echo ; echo "return Module; }; }); " >> $(EM_MODULE_U) ) $(SO_MODULE): $(OBJECTS)