=================================================================== RCS file: /cvs/web/transl.sh,v retrieving revision 1.6 retrieving revision 1.7 diff -u -p -r1.6 -r1.7 --- web/transl.sh 2018/06/04 12:26:27 1.6 +++ web/transl.sh 2018/11/25 01:00:31 1.7 @@ -8,7 +8,7 @@ # timestamp now=`date` -(rm index.xml; sed -e "s/dateModified\">[^<]*$now index.xml) < index.xml +sed -i -e "s/dateModified\">[^<]*$now ./${iso639}/index.html descr_transl=`cat ~/web/description/$iso639` keywd_transl=`cat ~/web/keywords/$iso639` - (rm ./${iso639}/index.html; \ - sed -e 2s/en/$iso639/ -e s/"\ its:translate=\"yes\""//g \ - -e s/"$descr_en"/"$descr_transl"/g -e s/"$keywd_en"/"$keywd_transl"/g \ - > ./${iso639}/index.html) < ./${iso639}/index.html + sed -i -e 2s/en/$iso639/ \ + -e s/"\ its:translate=\"yes\""//g \ + -e s/"$descr_en"/"$descr_transl"/g \ + -e s/"$keywd_en"/"$keywd_transl"/g ./${iso639}/index.html done # remove sintl tags -(rm index.html; \ - sed -e s/"its:translate=\"yes\""//g > index.html) < index.html +sed -i -e s/"its:translate=\"yes\""//g index.html #ja modifications -(rm ./ja/index.html; \ - sed -e s/"\/about"/"\/ja\/about"/g > ./ja/index.html) < ./ja/index.html - -(rm ./ja/index.html; \ - sed -e s/"\/CV"/"\/ja\/CV"/g > ./ja/index.html) < ./ja/index.html - -(rm ./ja/index.html; \ - sed -e s/"\/publications"/"\/ja\/publications"/g > ./ja/index.html) < ./ja/index.html - -(rm ./ja/index.html; \ - sed -e s/"\/talks"/"\/ja\/talks"/g > ./ja/index.html) < ./ja/index.html - -(rm ./ja/index.html; \ - sed -e s/"\/course"/"\/ja\/course"/g > ./ja/index.html) < ./ja/index.html +sed -i -e s/"\/about"/"\/ja\/about"/g \ + -e s/"\/CV"/"\/ja\/CV"/g \ + -e s/"\/publications"/"\/ja\/publications"/g \ + -e s/"\/talks"/"\/ja\/talks"/g \ + -e s/"\/course"/"\/ja\/course"/g ./ja/index.html exit 0