Skip to content

Commit

Permalink
Fixed website-build.sh nighlty to tag renames.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Sep 11, 2024
1 parent 058470e commit 85a7fbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/website-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ wget -r --no-parent --no-host-directories --no-verbose -P ../plugins/org.obeonet
# replace nigthly by current tag
if [ -n "$TAG" ]; then
echo " - Replace Nightly to" $TAG
mv ../plugins/org.obeonetwork.m2doc.doc/doc/nightly ../plugins/org.obeonetwork.m2doc.doc/doc/$TAG
mv ../plugins/org.obeonetwork.m2doc.doc/doc/ref-doc/nightly ../plugins/org.obeonetwork.m2doc.doc/doc/$TAG
find ../plugins/org.obeonetwork.m2doc.doc/doc/ -name "*.html" -exec sed -i 's#Nightly#'$TAG'#g' {} \;
find ../plugins/org.obeonetwork.m2doc.doc/doc/ -name "*.html" -exec sed -i 's#nightly#'$TAG'#g' {} \;
fi
Expand All @@ -32,7 +32,7 @@ cp -R capella ../plugins/org.obeonetwork.m2doc.doc/doc/
cp -R font-awesome ../plugins/org.obeonetwork.m2doc.doc/doc/
cp ref-doc/index-toc.xml ../plugins/org.obeonetwork.m2doc.doc/doc/ref-doc/index-toc.xml
if [ -n "$TAG" ]; then
find ../plugins/org.obeonetwork.m2doc.doc/doc/ -name "index-toc.xml" -exec sed -i 's#nightly#'$TAG'#g' {} \;
find ../plugins/org.obeonetwork.m2doc.doc/doc/ref-doc/ -name "index-toc.xml" -exec sed -i 's#nightly#'$TAG'#g' {} \;
fi
cd -

0 comments on commit 85a7fbc

Please sign in to comment.