RechercheTech / mss

Main MSS feature tracking repo. Also the place for default MSS issues fallinng under no other repo.
1 stars 3 forks source link

local language manual link vanishing when executing mssupdate for installations/updates #57

Closed intelliant01 closed 6 years ago

intelliant01 commented 6 years ago

mssupdate almost always regenerates index.html. The 90-mss-manual.html file was not being updated when integrating local language manual.

The indexer.sh has been modified to do the same.

intelliant01 commented 6 years ago

Fixed.

For old installs, the change needs to be done manually as of now (may construct a fix if needed) -

# diff indexer.sh /tmp/indexer.sh.old
3,4d2
< for i in `ls htmls`; do cat "htmls/$i" >> index.html; done
<
25c23
<                       sed -i -e 's@<a href="manual/mss-doc-latest/index.html" target="_blank">English</a>\&nbsp;\&nbsp;\&nbsp;<a href="manual/mss-doc-hi-latest/index.html" target="_blank">Hindi</a>@&\&nbsp;\&nbsp;\&nbsp;<a href="manual/mss-doc-'"$2"'-latest/index.html" target="_blank"></i>'"$3"'</a>@g' index.html
---
>                       sed -i -e 's@<a href="manual/mss-doc-latest/index.html" target="_blank">English</a>\&nbsp;\&nbsp;\&nbsp;<a href="manual/mss-doc-hi-latest/index.html" target="_blank">Hindi</a>@&\&nbsp;\&nbsp;\&nbsp;<a href="manual/mss-doc-'"$2"'-latest/index.html" target="_blank"></i>'"$3"'</a>@g' htmls/90-mss-manual.html
35a34,35
>
> for i in `ls htmls`; do cat "htmls/$i" >> index.html; done
---
38a39
> /usr/bin/mssipchange