From 5a3642b43a672b36271575c87c5ba0d522086d79 Mon Sep 17 00:00:00 2001 From: Markus Heidelberg Date: Sun, 3 May 2009 13:41:55 +0200 Subject: [PATCH] scripts/package wizard: make workable from TOPDIR Before you to had to be in a subdirectory, for example package/ Now you can call it from anywhere. Signed-off-by: Markus Heidelberg Signed-off-by: Peter Korsgaard --- scripts/add_new_package.wizard | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/add_new_package.wizard b/scripts/add_new_package.wizard index 4ad72c935b..bbcd7f66b9 100755 --- a/scripts/add_new_package.wizard +++ b/scripts/add_new_package.wizard @@ -49,10 +49,11 @@ URL=${DOWNLOAD_LOC%/*} TARBALL=${DOWNLOAD_LOC##*/} EXTENSION=${TARBALL##*.tar.} NAME_UPPER=`echo ${PACKAGE_NAME} | tr a-z- A-Z_` +PACKAGE_DIR=`dirname $0`/../package/${PACKAGE_NAME} -mkdir ../package/${PACKAGE_NAME} +mkdir ${PACKAGE_DIR} -cat > ../package/${PACKAGE_NAME}/${PACKAGE_NAME}.mk < ${PACKAGE_DIR}/${PACKAGE_NAME}.mk < ../package/${PACKAGE_NAME}/Config.in < ${PACKAGE_DIR}/Config.in <