Skip to content
Snippets Groups Projects
Commit 795dc892 authored by michael.minelli's avatar michael.minelli
Browse files

CI/CD => pkg_and_sign:debian: change sed separator

parent 9d4f51fb
Branches
Tags
1 merge request!2Adds a first version of the wiki documentation
Pipeline #26511 canceled
......@@ -23,25 +23,25 @@
## Copy binary
- cp -R ${BIN_NAME} "${PKG_BUILD_FOLDER_NAME}/usr/local/bin/"
## Copy debian folder with package definition files
- cp -R "${RESOURCES_FOLDER}/Debian/pkg/debian" "${PKG_BUILD_FOLDER_NAME}"
- cp -R "${RESOURCES_FOLDER}/Debian/pkg/DEBIAN" "${PKG_BUILD_FOLDER_NAME}"
# Modify files
- cd "${PKG_BUILD_FOLDER_NAME}/debian"
- cd "${PKG_BUILD_FOLDER_NAME}/DEBIAN"
## control file
- sed -i -r "s/\{\{VERSION\}\}/${VERSION}/g" control
- sed -i -r "s/\{\{ARCH\}\}/${ARCH}/g" control
- sed -i -r "s/\{\{BIN_NAME\}\}/${BIN_NAME}/g" control
- sed -i -r "s%\{\{VERSION\}\}%${VERSION}%g" control
- sed -i -r "s%\{\{ARCH\}\}%${ARCH}%g" control
- sed -i -r "s%\{\{BIN_NAME\}\}%${BIN_NAME}%g" control
## changelog file
- STABILITY=$([[ $IS_DEV == true ]] && echo 'unstable' || echo 'stable')
- PRIORITY=$([[ ${VERSION%.*} == ${LAST_STABLE_VERSION%.*} ]] && echo 'medium' || echo 'high')
- sed -i -r "s/\{\{VERSION\}\}/${VERSION}/g" changelog
- sed -i -r "s/\{\{BIN_NAME\}\}/${BIN_NAME}/g" changelog
- sed -i -r "s/\{\{DATE\}\}/$(date -R)/g" changelog
- sed -i -r "s/\{\{URL\}\}/${CI_PROJECT_URL}/g" changelog
- sed -i -r "s/\{\{STABILITY\}\}/${STABILITY}/g" changelog
- sed -i -r "s/\{\{PRIORITY\}\}/${PRIORITY}/g" changelog
- sed -i -r "s%\{\{VERSION\}\}%${VERSION}%g" changelog
- sed -i -r "s%\{\{BIN_NAME\}\}%${BIN_NAME}%g" changelog
- sed -i -r "s%\{\{DATE\}\}%$(date -R)%g" changelog
- sed -i -r "s%\{\{URL\}\}%${CI_PROJECT_URL}%g" changelog
- sed -i -r "s%\{\{STABILITY\}\}%${STABILITY}%g" changelog
- sed -i -r "s%\{\{PRIORITY\}\}%${PRIORITY}%g" changelog
## copyright file
- sed -i -r "s/\{\{BIN_NAME\}\}/${BIN_NAME}/g" copyright
- sed -i -r "s%\{\{BIN_NAME\}\}%${BIN_NAME}%g" copyright
## return to bin folder
- cd $BIN_FOLDER_DEBIAN_PKG_AND_SIGN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment