freecad: evade vsed strict mode for flaky version info

to fix CI
This commit is contained in:
Piraty 2022-10-02 21:15:18 +02:00 committed by classabbyamp
parent 2cb7f280f8
commit 0bbc9290c2
1 changed files with 2 additions and 1 deletions

View File

@ -44,9 +44,10 @@ fi
post_extract() {
# Report exact minor version
# Freecad has a record of shipping mismatching version info
vminor=${version#*.}
vminor=${vminor%%.*}
vsed -i -e "s,^\(set(PACKAGE_VERSION_MINOR\) .*,\1 \"${vminor}\")," CMakeLists.txt
sed -i -e "s,^\(set(PACKAGE_VERSION_MINOR\) .*,\1 \"${vminor}\")," CMakeLists.txt
# SubWCRev.py (SCM check) reports "unknown" for these fields
vsed -e "s,\${PACKAGE_WCREF},${revision}_voidlinux," \