Debian Codegraph @

.github/scripts/linux/rpm/setup_spec_file.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 echoscip-shell system . . echo. "--> Create copy of spec file"
4 cpscip-shell system . . cp. ${WORKSPACE}/.github/scripts/linux/rpm/ksnip.spec .
5
6 echoscip-shell system . . echo. "--> Update changelog entries"
7 cpscip-shell system . . cp. CHANGELOG.md changelog
8 sedscip-shell system . . sed. -i '1,2d' changelog #Remove header and empty line ad the beginning
9 sedscip-shell system . . sed. -i 's/* /-- /g' changelog # Replace asterisk with double dash
10 sedscip-shell system . . sed. -i 's/\[\(.*[^]]*\)\].*/\1)/g' changelog # Replace links to issues with only number
11 sedscip-shell system . . sed. -i "s/## Release \([0-9]*\.[0-9]*\.[0-9]*\)/* ${BUILD_DATE} Damir Porobic <[email protected]> \1/" changelog # Format release headers
12 catscip-shell system . . cat. changelog >> ksnip.spec
13
14 echoscip-shell system . . echo. "--> Update version"
15 sedscip-shell system . . sed. -i "s/Version: X.X.X/Version: ${VERSION_NUMBER}/" ksnip.spec
16 sedscip-shell system . . sed. -i "s;cmake .;cmake . -DVERSION_SUFIX=${VERSION_SUFFIX} -DBUILD_NUMBER=${BUILD_NUMBER} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH=${INSTALL_PREFIX} -DCMAKE_BUILD_TYPE=${BUILD_TYPE};" ksnip.spec # ; is the delimiter