[Buildroot] [PATCH 2/4] scripts/package wizard: delete trailing whitespace and empty lines

Markus Heidelberg markus.heidelberg at web.de
Sun May 3 11:41:56 UTC 2009


In this script and in the .mk output. Let's avoid unnecessary whitespace
issues in new packages created with this wizard.

Signed-off-by: Markus Heidelberg <markus.heidelberg at web.de>
---
 scripts/add_new_package.wizard |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/scripts/add_new_package.wizard b/scripts/add_new_package.wizard
index bbcd7f6..d4127f4 100755
--- a/scripts/add_new_package.wizard
+++ b/scripts/add_new_package.wizard
@@ -53,7 +53,7 @@ PACKAGE_DIR=`dirname $0`/../package/${PACKAGE_NAME}
 
 mkdir ${PACKAGE_DIR}
 
-cat > ${PACKAGE_DIR}/${PACKAGE_NAME}.mk <<EOF
+sed -e 's/ *$//g' > ${PACKAGE_DIR}/${PACKAGE_NAME}.mk <<EOF
 #############################################################
 #
 # ${PACKAGE_NAME}
@@ -71,7 +71,6 @@ ${NAME_UPPER}_CONF_OPT = ${CONFIG_OPTIONS}
 ${NAME_UPPER}_DEPENDENCIES = uclibc ${EXTRA_DEPS}
 
 \$(eval \$(call AUTOTARGETS,package,${PACKAGE_NAME}))
-
 EOF
 
 cat > ${PACKAGE_DIR}/Config.in <<EOF
@@ -90,4 +89,3 @@ echo
 echo "You are now ready to build ${PACKAGE_NAME}"
 echo "Just run make menuconfig and select your new"
 echo "package, then run make."
- 
-- 
1.6.3.rc4.11.g6eda9



More information about the buildroot mailing list