File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ repo="$1"
1010num=" $2 "
1111# date=$3
1212
13- SD_VERSION=" 1.0.0"
13+ # SD_VERSION="1.0.0"
1414
1515# Find main crate name
1616case $repo in
@@ -44,11 +44,11 @@ echo "$PRE start PUT operation (crate '$mainCrate')."
4444if [[ " $num " == " master" ]]; then
4545 gitRef=" master"
4646 dir=" $repo /master"
47- prettyNum =" Latest master"
47+ versionDescr =" Latest master"
4848else
4949 gitRef=" pull/$num /head"
5050 dir=" $repo /pr-$num "
51- prettyNum =" Pull Request #$num "
51+ versionDescr =" Pull Request #$num "
5252fi
5353
5454# Checkout PR branch
134134# Recognize min crate version, replace with current PR/master version
135135libVersion=$( grep -Po ' ^version = "\K[^"]*' " cloned/$mainCrate /Cargo.toml" )
136136echo " $PRE detected crate: $mainCrate v$libVersion ."
137- find " target/doc/$mainCrate " -name .html -o -type f -print0 | xargs -0 sed -i ' s/' " Version $libVersion " ' /' " $prettyNum " ' /g'
137+ find target/doc/" $mainCrate " -type f -name " *.html" \
138+ -exec sed -i " s|<span class=\\\" version\\\" >$libVersion </span>|<span class=\\\" version\\\" >$versionDescr </span>|g" {} +
138139
139140# Copy docs
140141echo " $PRE deploy docs for #$num ..."
You can’t perform that action at this time.
0 commit comments