[Koha-bugs] [Bug 20538] Remove the need of writing [% KOHA_VERSION %] everywhere

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Apr 8 12:57:16 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20538

--- Comment #5 from Julian Maurice <julian.maurice at biblibre.com> ---
Just in case, the sed commands I used to modify (almost) all templates:

sed -i -E 's/<(script|link) .*(href|src)=["'"'"']((\[%.*?%\])\/)*([^%]*)_\[%
KOHA_VERSION %\]\.(js|css)["'"'"'].*(\/?>|<\/\1>)/[% Asset.\6("\5\.\6") %]/'
**/*.inc **/*.tt

git status --porcelain | grep '^ M' | awk '{print $2}' | xargs -- sed -i '1i[%
USE Asset %]'

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list