X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=doc%2Fsrc%2Frtd%2Fpublish_man.sh;h=1bbfc7f43013d2a09bbf75429d8f2a8933b13732;hb=a3a121ca4a0426ec964fa684fb27c397f2ee9e24;hp=a0f71cd497d1a7456d0b00628a508738bba18cbf;hpb=117030c67f7a3722e64f1ecc3305a5862b3b7ce9;p=ric-plt%2Flib%2Frmr.git diff --git a/doc/src/rtd/publish_man.sh b/doc/src/rtd/publish_man.sh index a0f71cd..1bbfc7f 100755 --- a/doc/src/rtd/publish_man.sh +++ b/doc/src/rtd/publish_man.sh @@ -23,7 +23,7 @@ # scarper directory we will copy it over there. We inject a title so that the # RTD scripts won't object. -sdir="../../../docs" # the scraper dir +sdir="${RTD_SCRAPER_DIR:-../../../docs}" # the scraper dir (allow for testing/alternate) if [[ ! -d $sdir ]] then @@ -34,19 +34,19 @@ fi mkdir -p stuff ls -al ../man/*.xfm|sed 's!^.*man/!!' | while read x do - if [[ $x != *".7.xfm" ]] + if true then out=stuff/${x%.*}.rst target=${sdir}/${out##*/} - INPUT_FILE=${x%%.*} GEN_TITLE=1 LIB=".." OUTPUT_TYPE=rst tfm ../man/$x stdout 2>/dev/null | sed 's/^ //' >$out + INPUT_FILE=${x%%.*} GEN_TITLE=1 LIB=".." OUTPUT_TYPE=rst tfm ../man/$x stdout 2>/dev/null | sed 's/^ //' >$out new_m5=$( md5sum $out | sed 's/ .*//' ) if [[ ! -f $target || $new_m5 != $( md5sum $target | sed 's/ .*//' ) ]] then + echo "publishing to: ${target##*/}" cp $out $target fi - echo "${target##*/}" rm $out fi