Commit 47fcadcc authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Missing step for preparing epub document to download

parent f07346bc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
#!/bin/bash

DOCKER_IMAGE=pandoc:toMkdocs
TOOLS_DOCKER_IMAGE=generatechangemarks:master
TOOLS_DOCKER_IMAGE=generatechangemarks:toMkdocs

echo "\n------ Checking for docker image --------"
docker pull "$DOCKER_IMAGE"
+5 −0
Original line number Diff line number Diff line
@@ -60,6 +60,11 @@ if [[ ${10} == v* ]]; then
    file_name=$(ls docs/download/*.pdf)
    filename_corrected=$(echo ${file_name/&/and})
    mv docs/download/"$8_${10}.pdf" ${filename_corrected}
    mv "$8_${10}.epub" docs/download
    spec_name=$(echo ${8/&/and})
    file_name=$(ls docs/download/*.epub)
    filename_corrected=$(echo ${file_name/&/and})
    mv docs/download/"$8_${10}.epub" ${filename_corrected}
    echo ${spec_name}
    #for x in docs/download/*"&"*; do   mv -- "$x" "${x//&/and}"; done
    sed -i 's/PROJECT/'${9^^}'/g' docs/download/index.md