Skip to content

Commit 6e172e9

Browse files
committed
version bumper
1 parent 2136a35 commit 6e172e9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/bump_version.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ fi
99

1010
echo "Setting Local Branch Version to $1."
1111

12+
# update the qlpacks
1213
find . -name 'qlpack.yml' | grep -v './codeql_modules' | grep -v './scripts' | xargs sed -i "s/^version.*$/version: ${1}/"
1314

15+
# update the documentation.
16+
17+
find docs -name 'user_manual.md' | xargs sed -i "s/code-scanning-cpp-query-pack-anon-.*\.zip\`/code-scanning-cpp-query-pack-anon-${1}.zip\`/"
18+
find docs -name 'user_manual.md' | xargs sed -i "s/supported_rules_list_.*\.csv\`/supported_rules_list_${1}.csv\`/"
19+
find docs -name 'user_manual.md' | xargs sed -i "s/supported_rules_list_.*\.md\`/upported_rules_list_${1}.md\`/"
20+
find docs -name 'user_manual.md' | xargs sed -i "s/user_manual_.*\.md\`/user_manual_${1}.md\`/"
21+
1422
echo "Done."

0 commit comments

Comments
 (0)