Skip to content

Commit

Permalink
bee-init: fix a bug when DEFAULT_CONFIGURE_OPTIONS where set
Browse files Browse the repository at this point in the history
uncomment mee_configure if default configure options are set
  • Loading branch information
mariux committed Mar 23, 2012
1 parent a635790 commit 735f029
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions conf/templates/fallback
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ PATCHURL[0]=""
# bee_patch ${@}
#}

#mee_configure() {
# bee_configure @DEFAULT_CONFIGURE_OPTIONS@
#}
@DEFAULT_CONFIGURE_OPTIONS_NOTSET@mee_configure() {
@DEFAULT_CONFIGURE_OPTIONS_NOTSET@ bee_configure @DEFAULT_CONFIGURE_OPTIONS@
@DEFAULT_CONFIGURE_OPTIONS_NOTSET@}

#mee_build() {
# bee_build
Expand Down
7 changes: 7 additions & 0 deletions src/bee-init.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,14 @@ function initialize() {
sed -e "s,@SRCURL@,SRCURL[0]=\"${surl}\"," \
-i ${beefile}

if [ -z "${DEFAULT_CONFIGURE_OPTIONS}" ] ; then
DEFAULT_CONFIGURE_OPTIONS_NOTSET="#"
else
DEFAULT_CONFIGURE_OPTIONS_NOTSET=""
fi

sed -e "s,@DEFAULT_CONFIGURE_OPTIONS@,${DEFAULT_CONFIGURE_OPTIONS}," \
-e "s,@DEFAULT_CONFIGURE_OPTIONS_NOTSET@,${DEFAULT_CONFIGURE_OPTIONS_NOTSET}," \
-i ${beefile}

for i in prefix eprefix bindir sbindir libexecdir sysconfdir \
Expand Down

0 comments on commit 735f029

Please sign in to comment.