Skip to content
Snippets Groups Projects
Commit 80bb5b98 authored by pruizf's avatar pruizf
Browse files

[pub] footer update more

parent ee40b5bc
Branches
No related merge requests found
Pipeline #61138 passed with stages
in 9 seconds
...@@ -29,16 +29,19 @@ plays_done=$(ls site/read/tei/*xml | wc -l) ...@@ -29,16 +29,19 @@ plays_done=$(ls site/read/tei/*xml | wc -l)
sed -i -e "s/##nbrPieces/${plays_done}/g" site/read/*html sed -i -e "s/##nbrPieces/${plays_done}/g" site/read/*html
sed -i -e "s/##nbrPieces/${plays_done}/g" site/*html sed -i -e "s/##nbrPieces/${plays_done}/g" site/*html
# footer date # footer date
realdate=$(grep -P 'Last updated on ' site/en.html | grep -Po '[0-9: -]+ UTC') realdate=$(grep -P 'Last updated on ' site/en.html | grep -Po '[0-9: -]+ UTC')
echo "$realdate\n" >> site/log.txt echo "$realdate\n" >> site/log.txt
#2021-09-27 09:37:07 UTC #2021-09-27 09:37:07 UTC
perl -p -i -e "s/Last updated on .+/Last updated on $(date +'%Y-%m-%d %k:%M:%S')/" site/read/en.html # timestamp with date
perl -p -i -e "s/Last updated on .+/Mis à jour le $(date +'%Y-%m-%d %k:%M:%S')/" site/read/index.html #perl -p -i -e "s/Last updated on .+/Last updated on $(date +'%Y-%m-%d %k:%M:%S')/" site/read/en.html
#perl -p -i -e "s/Last updated on .+/Mis à jour le $(date +'%Y-%m-%d %k:%M:%S')/" site/read/index.html
# timestamp with grep of the one on the main page
perl -p -i -e "s/Last updated on .+/Last updated on $realdate/" site/read/en.html
perl -p -i -e "s/Last updated on .+/Mis à jour le $realdate/" site/read/index.html
# copy to public repo ========================================================== # COPY to public repo ==========================================================
cp -r site/*html public cp -r site/*html public
cp -r site/{img,styles,docs,read} public/. cp -r site/{img,styles,docs,read} public/.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment