#!/bin/bash # This script is executed by make in the parent directory [ "$HOSTNAME" != lime2 ] || exit 1 if [ "$VERBOSE" = true ]; then echo -n "Pulling CV... " fi cp ~/src/html-cv/out.html ./cv/index.html # Hide phone number sed -i -E 's/\+33 6( [0-9]{2}){4}/[téléphone caché]/' ./cv/index.html # Hide address sed -i -E 's/[0-9]{2,3} (rue|avenue|av\.?|boulevard|bld|place|pl\.?) [a-zA-Z ]+/[adresse cachée]/' ./cv/index.html sed -i -E 's/[0-9]{5} [a-zA-Z]+/[code postal et ville cachés]/' ./cv/index.html cp ~/src/html-cv/data/cv-photo ./cv/data/cv-photo cp ~/src/html-cv/data/internet-icon.png ./cv/data/internet-icon.png cp ~/src/html-cv/data/git-icon.png ./cv/data/git-icon.png cp -r ~/src/html-cv/css ./cv if git status | grep cv -c >/dev/null 2>&1; then echo "Updated CV" fi if [ "$VERBOSE" = true ]; then echo "Done" fi