Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix rmr_rpobe command line bug; add test coverage
[ric-plt/lib/rmr.git]
/
doc
/
src
/
rtd
/
publish_man.sh
diff --git
a/doc/src/rtd/publish_man.sh
b/doc/src/rtd/publish_man.sh
index
a0f71cd
..
1563f62
100755
(executable)
--- 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.
# 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
if [[ ! -d $sdir ]]
then
@@
-34,19
+34,19
@@
fi
mkdir -p stuff
ls -al ../man/*.xfm|sed 's!^.*man/!!' | while read x
do
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##*/}
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/^ //
; s/ *$//' >$out
new_m5=$( md5sum $out | sed 's/ .*//' )
if [[ ! -f $target || $new_m5 != $( md5sum $target | sed 's/ .*//' ) ]]
then
new_m5=$( md5sum $out | sed 's/ .*//' )
if [[ ! -f $target || $new_m5 != $( md5sum $target | sed 's/ .*//' ) ]]
then
+ echo "publishing to: ${target##*/}"
cp $out $target
fi
cp $out $target
fi
- echo "${target##*/}"
rm $out
fi
rm $out
fi