summaryrefslogtreecommitdiffstats
path: root/scripts/add_new_package.wizard
diff options
context:
space:
mode:
authorMarkus Heidelberg <markus.heidelberg@web.de>2009-05-03 13:41:55 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2009-05-03 22:24:36 +0200
commit5a3642b43a672b36271575c87c5ba0d522086d79 (patch)
treeba7febfb5ecba70323361cc486b949b0b23dccbc /scripts/add_new_package.wizard
parent76a6744da412d0d5ec813ee746abee635cfa579d (diff)
downloadbuildroot-novena-5a3642b43a672b36271575c87c5ba0d522086d79.tar.gz
buildroot-novena-5a3642b43a672b36271575c87c5ba0d522086d79.zip
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 <markus.heidelberg@web.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'scripts/add_new_package.wizard')
-rwxr-xr-xscripts/add_new_package.wizard7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/add_new_package.wizard b/scripts/add_new_package.wizard
index 4ad72c935..bbcd7f66b 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 <<EOF
+cat > ${PACKAGE_DIR}/${PACKAGE_NAME}.mk <<EOF
#############################################################
#
# ${PACKAGE_NAME}
@@ -73,7 +74,7 @@ ${NAME_UPPER}_DEPENDENCIES = uclibc ${EXTRA_DEPS}
EOF
-cat > ../package/${PACKAGE_NAME}/Config.in <<EOF
+cat > ${PACKAGE_DIR}/Config.in <<EOF
config BR2_PACKAGE_${NAME_UPPER}
bool "${PACKAGE_NAME}"
help