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:
parent
f09378d4c0
commit
f6a1848688
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user