diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-02-15 16:21:19 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-02-15 16:21:19 +0300 |
commit | 036e1ad5a74c120b29703b466a93e4b5e4fd742b (patch) | |
tree | a3ad3318d65731410c5053ea2a6ddda5bd4b04df /scripts | |
parent | bfb4518f49d4f4e845a0ff2ad7f3b1650079e723 (diff) |
Fix normalize-links replace
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/normalize-links.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/normalize-links.sh b/scripts/normalize-links.sh index c31e37a1..a6b2a34d 100755 --- a/scripts/normalize-links.sh +++ b/scripts/normalize-links.sh @@ -21,11 +21,11 @@ if ! [ -d "$TARGET/$VER" ]; then fi # Fix relative links for archive -find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/ce/#/'"$VER"'/ce/#g' -find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/ee/#/'"$VER"'/ee/#g' -find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/runner/#/'"$VER"'/runner/#g' -find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/omnibus/#/'"$VER"'/omnibus/#g' -find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/assets/#/'"$VER"'/assets/#g' +find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/ce/#="/'"$VER"'/ce/#g' +find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/ee/#="/'"$VER"'/ee/#g' +find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/runner/#="/'"$VER"'/runner/#g' +find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/omnibus/#="/'"$VER"'/omnibus/#g' +find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#="/assets/#="/'"$VER"'/assets/#g' find ${TARGET} -type f -name '*.html' -print0 | xargs -0 sed -i 's#<a href="/">#<a href="/'"$VER"'/">#g' # Symlink all README.html to index.html |