Skip to content

Commit

Permalink
bee-init: Fix versionify (minor problems)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jul 21, 2016
1 parent 356505d commit e26711e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bee-init.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ function bee_versionify() {

i=${#PKGVERSION[@]}-2

rules="-e 's,${PKGVERSION//\./\\.},\${PKGVERSION},g'"
rules="-e '/SRCURL/s,${PKGVERSION//\./\\.},\${PKGVERSION},g'"

while [ $i -gt 1 ] ; do
rules="${rules} -e 's,${PKGVERSION[$i]//\./\\.},\${PKGVERSION[$i]},g'"
rules="${rules} -e '/SRCURL/s,${PKGVERSION[$i]//\./\\.},\${PKGVERSION[$i]},g'"

i=i-1
done
Expand Down Expand Up @@ -290,7 +290,7 @@ function initialize() {

create_beefile_from_template ${beefile} ${TEMPLATE}

sed -e "s,@SRCURL@,SRCURL[0]=\"${surl}\"," \
sed -e "s,@SRCURL@,SRCURL=( \"${surl}\" )," \
-i ${beefile}

if [ -z "${DEFAULT_CONFIGURE_OPTIONS}" ] ; then
Expand Down

0 comments on commit e26711e

Please sign in to comment.