Remove CV
This commit is contained in:
parent
ce0cc66c34
commit
3ca89ea00f
9 changed files with 2 additions and 126 deletions
5
Makefile
5
Makefile
|
@ -5,7 +5,7 @@ GIT_UNTRACKED := $(shell git status | grep -i untracked -c)
|
|||
GIT_NEW := $(shell git status | grep "new file" -c)
|
||||
GIT_MODIFIED := $(shell git status | grep modified -c)
|
||||
|
||||
all: lime2test cours procedures cv index
|
||||
all: lime2test cours procedures index
|
||||
|
||||
lime2test:
|
||||
@[ "${HOSTNAME}" != lime2 ]
|
||||
|
@ -16,9 +16,6 @@ cours: lime2test
|
|||
procedures: lime2test header.html footer.html procedures/index.template.html
|
||||
@./bin/pull-procedures.sh
|
||||
|
||||
cv: lime2test
|
||||
@./bin/pull-cv.sh
|
||||
|
||||
index: lime2test header.html footer.html index.template.html
|
||||
@./bin/create-index.sh
|
||||
|
||||
|
|
|
@ -1,85 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script is executed by make in the parent directory
|
||||
|
||||
main() {
|
||||
verbose -n "Pulling CV... "
|
||||
|
||||
mkdir -p ./cv
|
||||
|
||||
temp_dir=$(mktemp -d)
|
||||
|
||||
cp ~/src/curriculum-vitae/photo.png "$temp_dir"
|
||||
sed 's/documentclass\[french/documentclass[english/' ~/src/curriculum-vitae/main.tex > "$temp_dir/cv_en.tex"
|
||||
sed 's/documentclass\[english/documentclass[french/' ~/src/curriculum-vitae/main.tex > "$temp_dir/cv_fr.tex"
|
||||
|
||||
hide_phone "$temp_dir/cv_en.tex" en
|
||||
hide_phone "$temp_dir/cv_fr.tex" fr
|
||||
hide_address "$temp_dir/cv_en.tex" en
|
||||
hide_address "$temp_dir/cv_fr.tex" fr
|
||||
hide_city "$temp_dir/cv_en.tex" en
|
||||
hide_city "$temp_dir/cv_fr.tex" fr
|
||||
|
||||
pushd "$temp_dir" || exit 1
|
||||
|
||||
latexmk -pdf cv_en.tex
|
||||
latexmk -pdf cv_fr.tex
|
||||
|
||||
popd || exit 1
|
||||
|
||||
timestamp=$(date +%Y-%m-%d_%H%M)
|
||||
|
||||
rm -f ./cv/cv_*_en.pdf
|
||||
rm -f ./cv/cv_*_fr.pdf
|
||||
mv "$temp_dir/build/cv_en.pdf" "./cv/cv_${timestamp}_en.pdf"
|
||||
mv "$temp_dir/build/cv_fr.pdf" "./cv/cv_${timestamp}_fr.pdf"
|
||||
|
||||
rm -rf "$temp_dir"
|
||||
|
||||
ln -rsf "./cv/cv_${timestamp}_en.pdf" "./cv/cv_en.pdf"
|
||||
ln -rsf "./cv/cv_${timestamp}_fr.pdf" "./cv/cv_fr.pdf"
|
||||
|
||||
if git status | grep cv | grep -v 'pull-cv.sh' -c >/dev/null 2>&1; then
|
||||
echo "Updated CV"
|
||||
fi
|
||||
|
||||
verbose "Done"
|
||||
}
|
||||
|
||||
hide_phone() {
|
||||
file="$1"
|
||||
lang="$2"
|
||||
if [ "$lang" = 'en' ]; then
|
||||
sed -i -E 's/\+33 6( [0-9]{2}){4}/[phone hidden]/' "$file"
|
||||
elif [ "$lang" = 'fr' ]; then
|
||||
sed -i -E 's/\+33 6( [0-9]{2}){4}/[téléphone caché]/' "$file"
|
||||
fi
|
||||
}
|
||||
|
||||
hide_address() {
|
||||
file="$1"
|
||||
lang="$2"
|
||||
if [ "$lang" = 'en' ]; then
|
||||
sed -i -E 's/[0-9]{2,3} (rue|avenue|av\.?|boulevard|bld|place|pl\.?) [a-zA-Z ]+/[address hidden]/' "$file"
|
||||
elif [ "$lang" = 'fr' ]; then
|
||||
sed -i -E 's/[0-9]{2,3} (rue|avenue|av\.?|boulevard|bld|place|pl\.?) [a-zA-Z ]+/[adresse cachée]/' "$file"
|
||||
fi
|
||||
}
|
||||
|
||||
hide_city() {
|
||||
file="$1"
|
||||
lang="$2"
|
||||
if [ "$lang" = 'en' ]; then
|
||||
sed -i -E 's/[0-9]{5} [a-zA-Z]+/[zip and city hidden]/' "$file"
|
||||
elif [ "$lang" = 'fr' ]; then
|
||||
sed -i -E 's/[0-9]{5} [a-zA-Z]+/[code postal et ville cachés]/' "$file"
|
||||
fi
|
||||
}
|
||||
|
||||
verbose() {
|
||||
if [ "$VERBOSE" = true ]; then
|
||||
echo "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
main
|
Binary file not shown.
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
cv_2023-11-15_1337_en.pdf
|
|
@ -1 +0,0 @@
|
|||
cv_2023-11-15_1337_fr.pdf
|
|
@ -1,32 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title>Tunui Franken</title>
|
||||
<link rel="icon" type="image/png" href="/img/favicon.png">
|
||||
<link rel="stylesheet" type="text/css" href="/css/styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<a href="/cv/">CV</a>
|
||||
<a href="https://git.tunuifranken.info/">GIT</a>
|
||||
<a href="xmpp://flyingscorpio@chapril.org">XMPP</a>
|
||||
<a href="/tunuifranken_public.key">GPG</a>
|
||||
</header>
|
||||
<section>
|
||||
<ul>
|
||||
<li><p><a href="./cv_en.pdf">EN</a></p></li>
|
||||
<li><p><a href="./cv_fr.pdf">FR</a></p></li>
|
||||
</ul>
|
||||
</section>
|
||||
<footer>
|
||||
<p>
|
||||
Ce site est auto-hébergé dans mon salon, sur un <a href="https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXino-LIME2/open-source-hardware">Lime2 de chez Olimex</a>.
|
||||
Merci à eux pour leur travail !
|
||||
</p>
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,4 +1,3 @@
|
|||
<a href="/cv/">CV</a>
|
||||
<a href="https://git.tunuifranken.info/">GIT</a>
|
||||
<a href="xmpp://flyingscorpio@chapril.org">XMPP</a>
|
||||
<a href="/tunuifranken_public.key">GPG</a>
|
||||
|
|
|
@ -10,8 +10,7 @@
|
|||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<a href="/cv/">CV</a>
|
||||
<a href="https://git.tunuifranken.info/">GIT</a>
|
||||
<a href="https://git.tunuifranken.info/">GIT</a>
|
||||
<a href="xmpp://flyingscorpio@chapril.org">XMPP</a>
|
||||
<a href="/tunuifranken_public.key">GPG</a>
|
||||
</header>
|
||||
|
|
Loading…
Reference in a new issue