2021-01-12 14:20:08 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-03-05 16:18:59 +01:00
|
|
|
# This script is executed by make in the parent directory
|
|
|
|
|
2021-01-12 14:20:08 +01:00
|
|
|
[ "$HOSTNAME" != lime2 ] || exit 1
|
|
|
|
|
2021-03-12 12:23:00 +01:00
|
|
|
if [ "$VERBOSE" = true ]; then
|
|
|
|
echo -n "Pulling CV... "
|
|
|
|
fi
|
2021-01-12 14:20:08 +01:00
|
|
|
|
2021-03-20 22:14:06 +01:00
|
|
|
updated=false
|
2021-03-20 22:15:39 +01:00
|
|
|
diff ~/src/html-cv/out.html ./cv/index.html 2>/dev/null || updated=true
|
|
|
|
diff ~/src/html-cv/data/cv-photo ./cv/data/cv-photo 2>/dev/null || updated=true
|
|
|
|
diff ~/src/html-cv/data/internet-icon.png ./cv/data/internet-icon.png 2>/dev/null || updated=true
|
|
|
|
diff ~/src/html-cv/data/git-icon.png ./cv/data/git-icon.png 2>/dev/null || updated=true
|
|
|
|
diff -r ~/src/html-cv/css ./cv/css 2>/dev/null || updated=true
|
2021-03-20 22:14:06 +01:00
|
|
|
|
2021-01-12 14:20:08 +01:00
|
|
|
cp ~/src/html-cv/out.html ./cv/index.html
|
|
|
|
cp ~/src/html-cv/data/cv-photo ./cv/data/cv-photo
|
2021-03-20 22:14:06 +01:00
|
|
|
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
|
2021-01-12 14:20:08 +01:00
|
|
|
cp -r ~/src/html-cv/css ./cv
|
|
|
|
|
2021-03-20 22:14:06 +01:00
|
|
|
if [ "$updated" = true ]; then
|
|
|
|
echo "Updated CV"
|
|
|
|
fi
|
|
|
|
|
2021-03-12 12:23:00 +01:00
|
|
|
if [ "$VERBOSE" = true ]; then
|
|
|
|
echo "Done"
|
|
|
|
fi
|