summaryrefslogtreecommitdiff
path: root/fix-staged-site.sh
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2015-10-28 15:42:14 (GMT)
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2015-10-28 15:42:14 (GMT)
commit33863ef50244a7dee430af25aa0c6006eb092ecd (patch)
treeeb770b86dd08adde2523500feabfeeb926fb5802 /fix-staged-site.sh
parent3b853724c7280db23c4170ed86929b9dd6d3050d (diff)
downloadmocca-33863ef50244a7dee430af25aa0c6006eb092ecd.zip
mocca-33863ef50244a7dee430af25aa0c6006eb092ecd.tar.gz
mocca-33863ef50244a7dee430af25aa0c6006eb092ecd.tar.bz2
Add simple script to fix staged site so it can be uploaded manually
Diffstat (limited to 'fix-staged-site.sh')
-rw-r--r--fix-staged-site.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/fix-staged-site.sh b/fix-staged-site.sh
new file mode 100644
index 0000000..4c2524d
--- /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" {} \;