Created
June 8, 2025 23:29
-
-
Save mgoellnitz/2f18b8f8a8193f4945ad1c73fb903da5 to your computer and use it in GitHub Desktop.
In CoreMedia Blueprint Workspaces locally remove most ancient tags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Wipe most likely unused references from CoreMedia repositories | |
# before pushing them to our custom repositories. | |
# | |
for r in $(git remote) ; do | |
if [ "$(git remote get-url $r|grep coremedia-contributions|wc -l)" != "0" ] ; then | |
COREMEDIA=$r | |
fi | |
done | |
echo "Discovered CoreMedia's original Remote at $COREMEDIA" | |
for t in $(git tag -l|grep livecontext-3) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cms-9-1[78]) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cms-9-1901) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cms-9-1904.[1-4]) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep ^dxp) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep ^16) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-10-19) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-10-20) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-10-2101) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-10-2104) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-10-2107.[1-7]) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-11-21) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-11-22) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-11-230) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-11-2310.[1-7]) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-12-2401.[1-7]) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-12-2404.[1-5]) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-12-2406.0.[0-3]) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-12-2406.1.0) ; do | |
git tag -d $t | |
done | |
for t in $(git tag -l|grep cmcc-12-2412.0.0) ; do | |
git tag -d $t | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment