freeswitch
freeswitch copied to clipboard
[build] Split `create_dsc` and `create-orig` functions in `util.sh`.
This is needed for GHA workflow, adding ability to prep source bundle without actually resetting git history or building source tars and the actual debs.
Function splitting is done in such a way, that it preserves all previous UX from CLI invocation, add add two more functions, so general flow would look like this:
VERSION=$(cat ./build/next-release.txt)
HASH=$(echo ${GITHUB_SHA} | cut -c1-10)
./debian/util.sh prep-create-orig -n -v${VERSION}-${{ env.GITHUB_RUN_NUMBER }}~${HASH}
./debian/util.sh prep-create-dsc ${{ matrix.codename }}
...
# run deb build commands
Unit-tests failed: https://public-artifacts.signalwire.cloud/drone/signalwire/freeswitch/1686/artifacts.html