Open Nule opened 11 years ago
for that you can do:
gsed -i -r -e 's/% url ([^%]+) %/% url "\1" %/g' *.html
but that does only half the trick. then do:
gsed -i -r -e 's/% url ([^%]+) %/% url "\1" %/g' include/*.html
gsed -i -r -e 's/adminmedia/admin_static/g' *.html
gsed -i -r -e 's/adminmedia/admin_static/g' include/*.html
gsed -i -r -e 's/custom_admin_media_prefix %\}([a-z\/\.]+)/static "admin\/\1" %\}/g' *.html
done.
New sintax of {%url%} tag and adminmedia not supported anymore.