Skip to content
Snippets Groups Projects
Commit 867cf8c9 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix script to update Info.plist properly.

We need -g to do multi-line matching with -p.
parent 1ac01645
No related branches found
No related tags found
No related merge requests found
Pipeline #6874 passed
......@@ -72,8 +72,8 @@ perl -pi -e "s/(CPACK_PACKAGE_VERSION )[^)]+/\$1.'${VERSTR}'/ge" CMakeLists.txt
# Info.plist
echo Updating Info.plist
perl -pi -e "s|(<key>CFBundleShortVersionString</key>.+?<string>)[^<]+(?=</string>)|\$1.'${VERSTR}'|ges" Info.plist
perl -pi -e "s|(<key>CFBundleVersion</key>.+?<string>)[^<]+(?=</string>)|\$1.'${NUMERIC}'|ges" Info.plist
perl -pgi -e "s|(<key>CFBundleShortVersionString</key>.+?<string>)[^<]+(?=</string>)|\$1.'${VERSTR}'|ges" Info.plist
perl -pgi -e "s|(<key>CFBundleVersion</key>.+?<string>)[^<]+(?=</string>)|\$1.'${NUMERIC}'|ges" Info.plist
# Manual.txt
echo Updating Manual.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment