diff --git a/projects/hip/packaging/convert_md_to_html.sh b/projects/hip/packaging/convert_md_to_html.sh index 0f6237deb6..b2c868cded 100755 --- a/projects/hip/packaging/convert_md_to_html.sh +++ b/projects/hip/packaging/convert_md_to_html.sh @@ -21,24 +21,24 @@ trap cleanup EXIT export GRIPURL=$hip_srcdir export GRIPHOME=$workdir echo "CACHE_DIRECTORY = '$html_destdir/asset'" > $workdir/settings.py -mkdir -p $html_destdir $html_destdir/clang-hipify $html_destdir/docs/markdown +mkdir -p $html_destdir $html_destdir/hipify-clang $html_destdir/docs/markdown # convert all md files to html pushd $hip_srcdir -for f in *.md clang-hipify/*.md docs/markdown/*.md; do grip --export --no-inline $f $html_destdir/${f%.*}.html; done +for f in *.md hipify-clang/*.md docs/markdown/*.md; do grip --export --no-inline $f $html_destdir/${f%.*}.html; done popd # convert absolute links to relative links pushd $html_destdir for f in *.html; do sed -i "s?$GRIPURL/??g" $f; done -for f in clang-hipify/*.html; do sed -i "s?$GRIPURL/?../?g" $f; done +for f in hipify-clang/*.html; do sed -i "s?$GRIPURL/?../?g" $f; done for f in docs/markdown/*.html; do sed -i "s?$GRIPURL/?../../?g" $f; done popd # update document titles pushd $html_destdir for f in *.html; do sed -i "s?.md - Grip??g" $f; done -for f in clang-hipify/*.html; do sed -i "s?.md - Grip??g" $f; done +for f in hipify-clang/*.html; do sed -i "s?.md - Grip??g" $f; done for f in docs/markdown/*.html; do sed -i "s?.md - Grip??g" $f; done popd @@ -46,8 +46,8 @@ popd pushd $html_destdir for f in *.html; do sed -i "s?.md\"?.html\"?g" $f; done for f in *.html; do sed -i "s?.md#?.html#?g" $f; done -for f in clang-hipify/*.html; do sed -i "s?.md\"?.html\"?g" $f; done -for f in clang-hipify/*.html; do sed -i "s?.md#?.html#?g" $f; done +for f in hipify-clang/*.html; do sed -i "s?.md\"?.html\"?g" $f; done +for f in hipify-clang/*.html; do sed -i "s?.md#?.html#?g" $f; done for f in docs/markdown/*.html; do sed -i "s?.md\"?.html\"?g" $f; done for f in docs/markdown/*.html; do sed -i "s?.md#?.html#?g" $f; done popd