Factor out the dump-rewrite sed script since creating pretty-printed

xml fixtures in general is a useful thing to do.
 - Legacy-Id: 817
This commit is contained in:
Bill Fenner 2007-07-02 16:27:21 +00:00
parent 63c532a175
commit cb30cc8008

5
ietf/bin/pretty-xml-dump Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
python manage.py dumpdata --format=xml "$@" | sed -e 's/<\/*object/\
&/g' -e 's/<field/\
&/g' -e 's/<\/django-objects/\
&/g'