diff options
author | jspijker <j.spijker@ultimaker.com> | 2022-07-08 13:37:32 +0300 |
---|---|---|
committer | jspijker <j.spijker@ultimaker.com> | 2022-07-08 13:37:32 +0300 |
commit | f9d4628b950c4bf85895d8e32b1112f7c6be6999 (patch) | |
tree | 37b7dbe01973f707cda1464add78e3d5cb0b0dce /scripts/rename_cura_1_tags.sh | |
parent | 8750c218db0a0da2705718d8d6614c34f71df31c (diff) | |
parent | d1cd4eec7667572d2abc89c639d0582bd4ed40c8 (diff) |
Merge branch 'main' into CURA-9365
# Conflicts:
# .github/workflows/ci.yml
# .github/workflows/cura-installer.yml
# .github/workflows/requirements-conan-package.txt
# resources/definitions/Mark2_for_Ultimaker2.def.json
# resources/definitions/elegoo_neptune_2.def.json
# resources/definitions/elegoo_neptune_2D.def.json
Diffstat (limited to 'scripts/rename_cura_1_tags.sh')
-rw-r--r-- | scripts/rename_cura_1_tags.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/rename_cura_1_tags.sh b/scripts/rename_cura_1_tags.sh new file mode 100644 index 0000000000..8391ed08c2 --- /dev/null +++ b/scripts/rename_cura_1_tags.sh @@ -0,0 +1,14 @@ +#Renames tags that were for Legacy Cura to a newer versioning system. +#Those Cura versions used tags based on the year of release. +#We'd like to rename them to be "Cura 1" and have the original version number as sub-version-numbers. +#So Cura 14.04 becomes Cura 1.14.04. + +for i in $(git tag -l) +do + if [[ $i =~ ^1[2-5]\.[0-9][0-9] ]]; then #E.g. 12.04 or 15.06. Note that there is no end-match so anything that starts with this matches. + echo "Renaming tag $i to 1.$i"; + git tag 1.$i $i; #Create new tag (1.x instead of x). + git tag -d $i; #Delete old tag. + git push origin 1.$i :$i #Rename the tag remotely too. + fi +done
\ No newline at end of file |