File tree 1 file changed +44
-0
lines changed
1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ #
3
+ # Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
4
+ # See file LICENSE for terms.
5
+ #
6
+
7
+ set -euE
8
+
9
+ branch=" ${1?Specify remote version to use like " upstream/v1.18.x" } "
10
+ remote=" ${branch%%/* } "
11
+ version=" $( echo " ${branch##*/ } " | sed -e ' s@\(v[0-9]\+\.[0-9]\+\).*@\1@' ) "
12
+
13
+ if ! git rev-parse --verify --quiet " $branch " > /dev/null; then
14
+ echo " Branch \" $branch \" does not exist"
15
+ exit 1
16
+ fi
17
+
18
+ echo " Proceed with clean checkout of $branch (${version} )?"
19
+ read -r
20
+
21
+ set -x
22
+
23
+ sudo yum -y install doxygen doxygen-latex
24
+
25
+ git checkout " $branch "
26
+ git clean -xdf
27
+ git reset --hard
28
+
29
+ ./autogen.sh
30
+ ./configure --with-docs-only
31
+ make docs
32
+
33
+ git checkout " $remote " /gh-pages
34
+ mkdir api/" $version "
35
+ ln -snf " $version " api/latest
36
+
37
+ cp docs/doxygen-doc/ucx.pdf " api/$version /ucx-$version .pdf"
38
+ ln -s " ucx-$version .pdf" " api/$version /ucx.pdf"
39
+ cp -ar docs/doxygen-doc/html " api/$version /"
40
+
41
+ git add api/latest " api/$version "
42
+ git commit -m " add $version documentation"
43
+
44
+ git --no-pager show --stat
You can’t perform that action at this time.
0 commit comments