Skip to content

Commit d94bca7

Browse files
committed
contrib/dist/publish_doc: symlink to the latest common jquery.js
Followup to open-mpi/ompi-www commit 080e30b0a5f9910c91ca555aee6bf8407bfefa5d Signed-off-by: Brice Goglin <[email protected]>
1 parent bdf5fa7 commit d94bca7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

contrib/dist/publish_doc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ else if ! test -d doc/www.open-mpi.org/html/; then
5454
exit 1
5555
fi fi fi
5656

57+
jquerydir="$dst/../../../includes/"
58+
jquery=$(cd "$jquerydir" && ls --sort=time jquery-*.js | head -1)
59+
if test x$jquery = x; then
60+
echo "ERROR: jquery*.js not found in $jquerydir"
61+
exit 1
62+
fi
63+
5764
echo "Installing hwloc-v${VERSION}-a4.pdf ..."
5865
cp -f doc/doxygen-doc/hwloc-a4.pdf "$dst/hwloc-v${VERSION}-a4.pdf"
5966

@@ -63,6 +70,11 @@ cp -f doc/doxygen-doc/hwloc-letter.pdf "$dst/hwloc-v${VERSION}-letter.pdf"
6370
echo "Installing v${VERSION}/ HTML directory ..."
6471
rsync -avz doc/www.open-mpi.org*inc doc/www.open-mpi.org/html/ "$dst/v${VERSION}/"
6572

73+
echo
74+
echo "Replacing jquery.js with the common $jquery ..."
75+
rm -f "$dst/v${VERSION}/jquery.js"
76+
ln -sf ../../../../includes/$jquery "$dst/v${VERSION}/jquery.js"
77+
6678
echo
6779
cd "$dst/v${VERSION}/"
6880
echo "Looking for main page links:"

0 commit comments

Comments
 (0)