Skip to content

Commit

Permalink
bee-init: Add support for #@beepackage feature
Browse files Browse the repository at this point in the history
temporary set required version in template to development version.
  • Loading branch information
mariux committed Jul 21, 2016
1 parent e26711e commit b6f67d0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions conf/templates/fallback
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
## this file was created by bee init and should be executed to build a
## bee-package. (Additional hints are located at the end of this file.)

##########################
## Set version information from within beefile by adding/uncommenting
## these lines (requires bee >= 1.3):
##
## #@beepackage pkgname-version-revision
## require_version 1.3

##@beepackage @PKGALLPKG@
#require_version 1.2.99

###############################################################################
## The source URL(s) define the location of the sources that will be
## downloaded. Version variables may be used to simplify reuse of this bee-file.
Expand Down
3 changes: 3 additions & 0 deletions src/bee-init.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ function initialize() {
-i ${beefile}
fi

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

bee_versionify ${beefile}

chmod 755 ${beefile}
Expand Down

0 comments on commit b6f67d0

Please sign in to comment.