]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
scripts/package wizard: delete trailing whitespace and empty lines
authorMarkus Heidelberg <markus.heidelberg@web.de>
Sun, 3 May 2009 11:41:56 +0000 (13:41 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 3 May 2009 20:24:36 +0000 (22:24 +0200)
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@web.de>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
scripts/add_new_package.wizard

index bbcd7f66b98b4a5cf5c72817826cebb3b730de73..d4127f4228dd77151c59d13adfc6a84c125e7657 100755 (executable)
@@ -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."