Be smarter about config generator default package name

Using python setup.py --name instead of the current working
directory will allow the config generator to work correctly by
default even if the local source tree was cloned into a directory
that doesn't match the project name.

Change-Id: Iea529e7e691d94402f658e7095387dc3e98e32fe
Closes-Bug: #1288417
This commit is contained in:
Ben Nemec 2014-03-10 19:48:14 +00:00
parent f09378d4c0
commit f6a1848688
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ then
BASEDIR=$(cd "$BASEDIR" && pwd)
fi
PACKAGENAME=${PACKAGENAME:-${BASEDIR##*/}}
PACKAGENAME=${PACKAGENAME:-$(python setup.py --name)}
TARGETDIR=$BASEDIR/$PACKAGENAME
if ! [ -d $TARGETDIR ]
then