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>
This commit is contained in:
Markus Heidelberg 2009-05-03 13:41:55 +02:00 committed by Peter Korsgaard
parent 76a6744da4
commit 5a3642b43a

View File

@ -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