X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=doc%2Fsrc%2Frtd%2Fpublish_lib.sh;fp=doc%2Fsrc%2Frtd%2Fpublish_lib.sh;h=a23af063f7482863513301b729f2ef07d0d62990;hb=a3a121ca4a0426ec964fa684fb27c397f2ee9e24;hp=842482b1d5d1dea69fe15f6de7d719006369694e;hpb=2b3c393e660c5e1037191f43cc70537da8316b89;p=ric-plt%2Flib%2Frmr.git diff --git a/doc/src/rtd/publish_lib.sh b/doc/src/rtd/publish_lib.sh index 842482b..a23af06 100755 --- a/doc/src/rtd/publish_lib.sh +++ b/doc/src/rtd/publish_lib.sh @@ -18,7 +18,7 @@ # limitations under the License. #================================================================================== -# Build the user doc in ../library and if there are changes publish it into +# Build the documents in ../library and if there are changes publish it into # the scraper (../../../docs) directory. sdir="../../../docs" # the scraper dir @@ -31,12 +31,17 @@ fi set -e cd ../library -make -B user.rst +make -B docs # make all documents pushed to scraper dir -new_m5=$( md5sum user.rst | sed 's/ .*//' ) -old_md5=$( md5sum $sdir/user-guide.rst | sed 's/ .*//' ) -if [[ $new_m5 != $old_m5 ]] -then - echo "publishing user-guide.rst" - cp user.rst $sdir/user-guide.rst -fi +for f in *.rst +do + touch $sdir/$f # must ensure it is there if new + new_md5=$( md5sum $f | sed 's/ .*//' ) + old_md5=$( md5sum $sdir/$f | sed 's/ .*//' ) + + if [[ $new_md5 != $old_md5 ]] + then + echo "publishing $f" + cp $f $sdir/$f + fi +done