From 589b2788bf5a8719a7584c7832f1c9b8a3129504 Mon Sep 17 00:00:00 2001 From: ebbit1q Date: Fri, 1 Jul 2022 20:24:20 +0200 Subject: [PATCH] remove unused token relations (#160) * search for unused relations reverse-related is assumed to only be used for external references to the xml related tags should be used for internal links to make this easier and to avoid certain errors eg the Phyrexian Insect here the following lazy bash has been used to find these: \#!/bin/bash relationrx=']*)>([^<]*)' while read -r line; do if [[ $line =~ $relationrx ]]; then name="${BASH_REMATCH[2]}" #args="${BASH_REMATCH[1]}" if ! grep -F "$name" "$HOME/.local/share/Cockatrice/Cockatrice/cards.xml" -q; then echo "$name" fi fi done Cockatrice/Magic-Token https://raw.githubusercontent.com/Cockatrice/Magic-Token/master/tokens.xml - 20220701 + 20220701b