diff options
-rw-r--r-- | fix-staged-site.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fix-staged-site.sh b/fix-staged-site.sh new file mode 100644 index 00000000..4c2524d0 --- /dev/null +++ b/fix-staged-site.sh @@ -0,0 +1,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" {} \; |