From: Markus Heidelberg Date: Sun, 3 May 2009 11:41:55 +0000 (+0200) Subject: scripts/package wizard: make workable from TOPDIR X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a3642b43a672b36271575c87c5ba0d522086d79;p=buildroot.git 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 --- 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 <