Commit b0c42d7a authored by Nathalie Furmento's avatar Nathalie Furmento

scripts: for non html files, as redirect do not work, the source file must be updated

parent 7ec2b22d
Pipeline #159504 passed with stages
in 1 minute and 24 seconds
......@@ -41,8 +41,10 @@ updateFileLinks()
do
echo "create redirect for $x"
case "$x" in
*/) createRedirectDir $x "http://starpu.gforge.inria.fr$x" ;;
*) mkdir -p public/$(dirname $x) && createRedirectFile $x "http://starpu.gforge.inria.fr$x" ;;
*pdf) for f in $(grep -rsl $x public) ; do sed -i 's;href="'$x'";"http://starpu.gforge.inria.fr'$x'";g' $f ; done ;;
*gz) for f in $(grep -rsl $x public) ; do sed -i 's;href="'$x'";"http://starpu.gforge.inria.fr'$x'";g' $f ; done ;;
*/) createRedirectDir $x "http://starpu.gforge.inria.fr$x" ;;
*) mkdir -p public/$(dirname $x) && createRedirectFile $x "http://starpu.gforge.inria.fr$x" ;;
esac
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment