mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 21:33:08 +00:00
Support released versions from Git branches
* Do not assume a release has a tarball if src_release is set to "n". * Do not assume versions in repositories are all experimental. * Allow versions to define their default repository_branch, repository_cset, repository_subdir and bootstrap. * Do not expect mirrors, archive_filename, archive_dirname, archive_formats and signature_format from a version if src_release is set to "n". * Add version_number to allow version names to be different than the version number. When given, use version_number to compare against the milestones. Signed-off-by: Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
This commit is contained in:
parent
ed3a1ff4b9
commit
7fdb7665f7
@ -574,6 +574,9 @@ enter_fork()
|
||||
info[pkg_name]=${fork}
|
||||
info[pkg_label]=${fork}
|
||||
info[mirrors]=
|
||||
info[src_release]=
|
||||
info[src_devel]=
|
||||
info[src_custom]=
|
||||
info[archive_filename]='@{pkg_name}-@{version}'
|
||||
info[archive_dirname]='@{pkg_name}-@{version}'
|
||||
info[versionlocked]=
|
||||
@ -646,8 +649,12 @@ enter_milestone()
|
||||
|
||||
info[ms]=${ms}
|
||||
if [ -n "${info[ver]}" ]; then
|
||||
if [ -n "${info[version_number]}" ]; then
|
||||
info[version_cmp_milestone]=`cmp_versions ${info[version_number]} ${info[ms]}`
|
||||
else
|
||||
info[version_cmp_milestone]=`cmp_versions ${info[ver]} ${info[ms]}`
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
gen_packages()
|
||||
|
@ -53,7 +53,7 @@ config @@fork|@@_PKG_NAME
|
||||
choice
|
||||
bool "Source of @@pkg_label@@"
|
||||
|
||||
#!if [ "@@#version@@" -gt 0 ]
|
||||
#!if [ "@@#version@@" -gt 0 ] && [ "@@src_release@@" != "n" ]
|
||||
config @@fork|@@_SRC_RELEASE
|
||||
bool "Released tarball"
|
||||
help
|
||||
@ -62,9 +62,6 @@ config @@fork|@@_SRC_RELEASE
|
||||
#!end-if
|
||||
config @@fork|@@_SRC_DEVEL
|
||||
bool "Vendor/custom repository"
|
||||
#!if [ "@@#version@@" -gt 0 ]
|
||||
depends on EXPERIMENTAL
|
||||
#!end-if
|
||||
help
|
||||
Check out from a repository.
|
||||
#!if [ -n "@@repository@@" ]
|
||||
@ -116,6 +113,9 @@ config @@fork|@@_DEVEL_URL
|
||||
|
||||
config @@fork|@@_DEVEL_BRANCH
|
||||
string "Branch/tag to check out"
|
||||
#!foreach version if-differs repository_branch
|
||||
default "@@repository_branch@@" if @@fork|@@_V_@@ver_sel|@@
|
||||
#!end-foreach
|
||||
default "@@repository_branch@@"
|
||||
help
|
||||
Git/CVS: branch/tag to be checked out
|
||||
@ -126,6 +126,9 @@ config @@fork|@@_DEVEL_BRANCH
|
||||
|
||||
config @@fork|@@_DEVEL_REVISION
|
||||
string "Revision/changeset"
|
||||
#!foreach version if-differs repository_cset
|
||||
default "@@repository_cset@@" if @@fork|@@_V_@@ver_sel|@@
|
||||
#!end-foreach
|
||||
default "@@repository_cset@@"
|
||||
help
|
||||
Commit ID or revision ID to check out.
|
||||
@ -135,6 +138,9 @@ config @@fork|@@_DEVEL_REVISION
|
||||
|
||||
config @@fork|@@_DEVEL_SUBDIR
|
||||
string "Subdirectory in the repository"
|
||||
#!foreach version if-differs repository_subdir
|
||||
default "@@repository_subdir@@" if @@fork|@@_V_@@ver_sel|@@
|
||||
#!end-foreach
|
||||
default "@@repository_subdir@@"
|
||||
help
|
||||
Some projects produce releases not from the top-level directory in the
|
||||
@ -143,6 +149,9 @@ config @@fork|@@_DEVEL_SUBDIR
|
||||
|
||||
config @@fork|@@_DEVEL_BOOTSTRAP
|
||||
string "Bootstrap command"
|
||||
#!foreach version if-differs bootstrap
|
||||
default "@@bootstrap@@" if @@fork|@@_V_@@ver_sel|@@
|
||||
#!end-foreach
|
||||
default "@@bootstrap@@"
|
||||
help
|
||||
Command to run after checking out. Some projects don't store the generated
|
||||
@ -316,7 +325,7 @@ config @@fork|@@_VERSION
|
||||
default "old" if @@fork|@@_VERY_OLD
|
||||
default "unknown"
|
||||
|
||||
#!if [ "@@#version@@" -gt 0 ]
|
||||
#!if [ "@@#version@@" -gt 0 ] && [ "@@src_release@@" != "n" ]
|
||||
config @@fork|@@_MIRRORS
|
||||
string
|
||||
#!foreach version if-differs mirrors
|
||||
|
Loading…
Reference in New Issue
Block a user