summaryrefslogtreecommitdiff
path: root/fix-staged-site.sh
blob: 4c2524d06fbc509497045d8b0a93953289da5e47 (plain)
1
2
3
#!/bin/sh
find . -name project-summary.html -exec sed -i "s#href=\"\(\.\./\)*https/p.ec.europa.eu/webdav/mocca/www/*\([^\"]*\)[^<]*#class=\"externalLink\" href=\"http://joinup.ec.europa.eu/site/mocca/\2\">http://joinup.ec.europa.eu/site/mocca/\2#g" {} \;
find . -name dependencies.html -exec sed -i "s#\(\.\./\)*https/p.ec.europa.eu/webdav/mocca/www/*\([^<]*\)#<a class=\"externalLink\" href=\"http://joinup.ec.europa.eu/site/mocca/\2\">http://joinup.ec.europa.eu/site/mocca/\2</a>#g" {} \;