mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
Update deploy-ebook-to-www so that it changes the modified date in teh deployed content.opf file, so that generate-opds can use it
This commit is contained in:
parent
affc65bb9d
commit
a8bef9ad93
1 changed files with 5 additions and 0 deletions
|
@ -178,6 +178,11 @@ do
|
|||
printf "Done.\n"
|
||||
fi
|
||||
|
||||
# Get the last commit date so that we can update the modified timestamp in
|
||||
# deployed content.opf. generate-opds uses this timestamp in its output.
|
||||
modifiedDate=$(TZ=UTC git log --date=iso-strict-local -1 --pretty=tformat:"%cd" --abbrev-commit | sed "s/+00:00/Z/")
|
||||
sed --in-place --regexp-extended "s/<meta property=\"dcterms:modified\">.+?<\/meta>/<meta property=\"dcterms:modified\">${modifiedDate}<\/meta>/" "${workDir}/src/epub/content.opf"
|
||||
|
||||
# Delete the contents of the old webdir
|
||||
rm --preserve-root --recursive --force "${webDir}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue