[Zrouter-src] ZRouter.org: push to ZRouter share/mk/converters/strip.mk

zrouter-src at zrouter.org zrouter-src at zrouter.org
Tue Jan 10 10:41:58 UTC 2012


details:   http://zrouter.org/hg/zrouter//rev/a4f5d4ea6c68
changeset: 309:a4f5d4ea6c68
user:      ray at terran.dlink.ua
date:      Tue Jan 10 12:42:23 2012 +0200
description:
Add new converter strip.

Submited by: Axel Gonzalez

diffstat:

 share/mk/converters/strip.mk |  39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diffs (43 lines):

diff -r 423f6e1d2f68 -r a4f5d4ea6c68 share/mk/converters/strip.mk
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/share/mk/converters/strip.mk	Tue Jan 10 12:42:23 2012 +0200
@@ -0,0 +1,39 @@
+# Copyright (c) 2011 Axel Gonzalez <loox at e-shell.net>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice unmodified, this list of conditions, and the following
+#    disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+# SUCH DAMAGE.
+
+CONVERT_FROM_STRIP:=${NEW_CURRENT_PACKING_FILE_NAME}
+CONVERT_TO_STRIP:=${CURRENT_PACKING_FILE_NAME}
+
+# Let user override
+CONVERTER_STRIP?=strip
+#CONVERTER_STRIP_FLAGS?=
+
+${CONVERT_TO_STRIP}:		${CONVERT_FROM_STRIP}
+	@echo ========== Convert ${CONVERT_FROM_STRIP} to ${CONVERT_TO_STRIP} \
+	    with ${CONVERTER_STRIP} ============
+	rm -f ${CONVERT_TO_STRIP}
+	PATH=${IMAGE_BUILD_PATHS} ${CONVERTER_STRIP} ${CONVERTER_STRIP_FLAGS} \
+	    -o ${CONVERT_TO_STRIP} ${CONVERT_FROM_STRIP}
+


More information about the Zrouter-src mailing list