summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2015-10-28 16:42:14 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2015-10-28 16:42:14 +0100
commit33863ef50244a7dee430af25aa0c6006eb092ecd (patch)
treeeb770b86dd08adde2523500feabfeeb926fb5802
parent3b853724c7280db23c4170ed86929b9dd6d3050d (diff)
downloadmocca-33863ef50244a7dee430af25aa0c6006eb092ecd.tar.gz
mocca-33863ef50244a7dee430af25aa0c6006eb092ecd.tar.bz2
mocca-33863ef50244a7dee430af25aa0c6006eb092ecd.zip
Add simple script to fix staged site so it can be uploaded manually
-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 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" {} \;