Add route table guide and formatting tweaks
[ric-plt/lib/rmr.git] / doc / src / rtd / publish_man.sh
index a0f71cd..1bbfc7f 100755 (executable)
@@ -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