CHARP fix architect.sh - pupitetris/charp GitHub Wiki
This script was written to edit the XML output of Power Architect's propietary files and make changes that will remove unnecessary warnings that accumulate due to bugs in Power Architect's file saving routines. The idea si to have as little warnings as possible so possibly erroneous design parameters can be more easily detected.
Fortunately, the Power Architect team has been removing the production of XML that triggers most of these unnecessary warnings, and the script currently only eliminates the "Duplicate physical foreign key name" warning. This filter script should be passed if such a warning occurs during SQL exporting. You must close the file in Power Architect before passing the filter.
This script works as a filter program:
$ ./fix-architect.sh < ../design/''myproject''.architect > temp.architect; mv -f temp.architect ../design/''myproject''.architect