From 33863ef50244a7dee430af25aa0c6006eb092ecd Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Wed, 28 Oct 2015 16:42:14 +0100 Subject: Add simple script to fix staged site so it can be uploaded manually --- fix-staged-site.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 fix-staged-site.sh 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/*\([^<]*\)#http://joinup.ec.europa.eu/site/mocca/\2#g" {} \; -- cgit v1.2.3