tools/strip: Add utility
parent
b7596515b3
commit
652465a0a0
|
@ -93,11 +93,11 @@
|
||||||
|
|
||||||
<xsl:if test="$debugval = 'yes' or $debug-force">
|
<xsl:if test="$debugval = 'yes' or $debug-force">
|
||||||
<xsl:text>; </xsl:text>
|
<xsl:text>; </xsl:text>
|
||||||
<xsl:text>( debug['</xsl:text>
|
<xsl:text>/*!+*/( debug['</xsl:text>
|
||||||
<xsl:value-of select="@_id" />
|
<xsl:value-of select="@_id" />
|
||||||
<xsl:text>'] || ( debug['</xsl:text>
|
<xsl:text>'] || ( debug['</xsl:text>
|
||||||
<xsl:value-of select="@_id" />
|
<xsl:value-of select="@_id" />
|
||||||
<xsl:text>'] = [] ) ).push( result ); </xsl:text>
|
<xsl:text>'] = [] ) ).push( result );/*!-*/ </xsl:text>
|
||||||
|
|
||||||
<xsl:text>return result; </xsl:text>
|
<xsl:text>return result; </xsl:text>
|
||||||
<xsl:text>} )() </xsl:text>
|
<xsl:text>} )() </xsl:text>
|
||||||
|
|
|
@ -918,11 +918,11 @@
|
||||||
|
|
||||||
<text>;</text>
|
<text>;</text>
|
||||||
|
|
||||||
<text>( debug['</text>
|
<text>/*!+*/( debug['</text>
|
||||||
<value-of select="@_id" />
|
<value-of select="@_id" />
|
||||||
<text>'] || ( debug['</text>
|
<text>'] || ( debug['</text>
|
||||||
<value-of select="@_id" />
|
<value-of select="@_id" />
|
||||||
<text>'] = [] ) ).push( tmp ); </text>
|
<text>'] = [] ) ).push( tmp );/*!-*/ </text>
|
||||||
|
|
||||||
|
|
||||||
<text>result = </text>
|
<text>result = </text>
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Strip debugging information from object files and executables.
|
||||||
|
#
|
||||||
|
# Analogous to GNU strip used for ELF and other binary formats.
|
||||||
|
# Note that calculation breakdowns will not work after stripping.
|
||||||
|
##
|
||||||
|
|
||||||
|
# debug assignments
|
||||||
|
sed -i 's#/\*!+\*/[^!]\+/\*!-\*/##g' ui/package.js
|
||||||
|
|
Loading…
Reference in New Issue