Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Be smarter about config generator default package name
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cybertron committed Mar 10, 2014
1 parent f09378d commit f6a1848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/config/generate_sample.sh
Expand Up @@ -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
Expand Down

0 comments on commit f6a1848

Please sign in to comment.