File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 129
129
version=` cat ${FLEDGE_ROOT} /VERSION | tr -d ' ' | grep ' fledge_version=' | head -1 | sed -e ' s/\(.*\)=\(.*\)/\2/g' `
130
130
BUILD_ROOT=" ${PKG_ROOT} /packages/Debian/build/${architecture} "
131
131
# Final package name
132
- if [[ $skip_build == 0 ]] && ([[ ${branch} != " main" ]] && [[ ! ${branch} =~ ^[0-9]+\. [0-9]+\. [0-9]+RC ]]); then package_name=" fledge_${version} -${commit_count} _${architecture} " ; version=${git_tag_info: 1} ; else package_name=" fledge- ${version} - ${architecture} " ; fi
132
+ if [[ $skip_build == 0 ]] && ([[ ${branch} != " main" ]] && [[ ! ${branch} =~ ^[0-9]+\. [0-9]+\. [0-9]+RC ]]); then package_name=" fledge_${version} -${commit_count} _${architecture} " ; version=${git_tag_info: 1} ; else package_name=" fledge_ ${version} _ ${architecture} " ; fi
133
133
134
134
# Print the summary of findings
135
135
echo " The package root directory is : ${PKG_ROOT} "
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ pkg_name="fledge-${ADDITIONAL_LIB_NAME}"
93
93
arch_name=$( dpkg --print-architecture)
94
94
git_tag_info=$( git describe --tags) && commit_count=$( echo ${git_tag_info} | cut -d- -f2) || { commit_count=$( git rev-list --count HEAD) ; git_tag_info=" v$version -$commit_count -g$( git rev-parse --short HEAD) " ; }
95
95
branch_name=$( git rev-parse --abbrev-ref HEAD)
96
- if [[ ${branch_name} != " main" ]] && [[ ! ${branch_name} =~ ^[0-9]+\. [0-9]+\. [0-9]+RC ]]; then package_name=" ${pkg_name} _${version} -${commit_count} _${architecture} " ; version=${git_tag_info: 1} ; else package_name=" ${pkg_name} - ${version} - ${architecture} " ; fi
96
+ if [[ ${branch_name} != " main" ]] && [[ ! ${branch_name} =~ ^[0-9]+\. [0-9]+\. [0-9]+RC ]]; then package_name=" ${pkg_name} _${version} -${commit_count} _${architecture} " ; version=${git_tag_info: 1} ; else package_name=" ${pkg_name} _ ${version} _ ${architecture} " ; fi
97
97
98
98
if [ ! -d " ${archive} /${architecture} " ]; then
99
99
mkdir -p " ${archive} /${architecture} "
Original file line number Diff line number Diff line change 126
126
git_tag_info=$( git describe --tags) && commit_count=$( echo ${git_tag_info} | cut -d- -f2) || { commit_count=$( git rev-list --count HEAD) ; git_tag_info=" v$version -$commit_count -g$( git rev-parse --short HEAD) " ; }
127
127
# Final package name
128
128
archname=$( dpkg --print-architecture)
129
- if [[ ${BRANCH_NAME} != " main" ]] && [[ ! ${BRANCH_NAME} =~ ^[0-9]+\. [0-9]+\. [0-9]+RC ]]; then package_name=" ${pkg_name} _${version} -${commit_count} _${arch} " ; version=${git_tag_info: 1} ; else package_name=" ${pkg_name} - ${version} - ${arch} " ; fi
129
+ if [[ ${BRANCH_NAME} != " main" ]] && [[ ! ${BRANCH_NAME} =~ ^[0-9]+\. [0-9]+\. [0-9]+RC ]]; then package_name=" ${pkg_name} _${version} -${commit_count} _${arch} " ; version=${git_tag_info: 1} ; else package_name=" ${pkg_name} _ ${version} _ ${arch} " ; fi
130
130
131
131
# Print the summary of findings
132
132
echo " The package root directory is : ${GIT_ROOT} "
Original file line number Diff line number Diff line change 127
127
git_tag_info=$( git describe --tags) && commit_count=$( echo ${git_tag_info} | cut -d- -f2) || { commit_count=$( git rev-list --count HEAD) ; git_tag_info=" v$version -$commit_count -g$( git rev-parse --short HEAD) " ; }
128
128
# Final package name
129
129
archname=$( dpkg --print-architecture)
130
- if [[ ${BRANCH_NAME} != " main" ]] && [[ ! ${BRANCH_NAME} =~ ^[0-9]+\. [0-9]+\. [0-9]+RC ]]; then package_name=" ${pkg_name} _${version} -${commit_count} _${architecture} " ; version=${git_tag_info: 1} ; else package_name=" ${pkg_name} - ${version} - ${architecture} " ; fi
130
+ if [[ ${BRANCH_NAME} != " main" ]] && [[ ! ${BRANCH_NAME} =~ ^[0-9]+\. [0-9]+\. [0-9]+RC ]]; then package_name=" ${pkg_name} _${version} -${commit_count} _${architecture} " ; version=${git_tag_info: 1} ; else package_name=" ${pkg_name} _ ${version} _ ${architecture} " ; fi
131
131
132
132
# Print the summary of findings
133
133
echo " The package root directory is : ${GIT_ROOT} "
You can’t perform that action at this time.
0 commit comments