# Strip upstream (ArtCraft / Discord) branding. Run: perl tools/craft-skills/skills/debrand/debrand.pl .  (--check in CI)
delete docs/brand
# MIT/Apache texts stay verbatim. The copyright holder line stays everywhere (legal requirement).
keep ^(LICENSE-(MIT|APACHE)|\.debrand)$
dropline ^ASSETS\.md$ :: \|\s*`docs/brand/
dropline ^crates/ui-egui/src/i18n(/.*)?\.rs$ :: \s*\("[^"]*(?:ArtCraft|Discord|discord)
sub (?s)\nThe ArtCraft name, wordmark and logos in docs/brand/.*?LICENSE-brand\.txt\.\n =>
sub \s*\(except the ArtCraft trademarks in `docs/brand/`, under `docs/brand/LICENSE-brand\.txt`\) =>
sub drawn in ArtCraft\) => drawn by hand)
sub owner's ArtCraft drawing => owner's drawing
sub by the project owner in ArtCraft, then => by the project owner, then
sub The owner drew the cat in ArtCraft\. => The owner drew the cat by hand.
sub the MIT OR Apache-2\.0 ArtCraft sibling catalogs => the MIT OR Apache-2.0 sibling catalogs
forbid (?i)artcraft(?! Team and the DesignCraft contributors)
forbid (?i)discord
sub \s*The one exception is the ArtCraft brand files in `docs/brand/`: ArtCraft trademarks, not open source, used under `docs/brand/LICENSE-brand\.txt`\. =>
sub https://getartcraft\.com/apps/designcraft => https://github.com/storytold/designcraft
sub https://discord\.gg/artcraft => https://github.com/storytold/designcraft/issues
